checks if children have children