add has_children field