Fixed hasChildren