[TASK] Adapt to new interface method hasChildren