fixed hasChildren method