Handling a single child

how to handle a single child