added has_children attribute