Call to a member function hasChildren() on null