is_parent returned number of children instead of boolean - close #555