Sometimes listItem.hasChildren is incorrect at tagging if the obj could be used at calling the method 'getChildrenOfItem'