Handling case where parent has no children