Ticket #455 - Couple without children cause errors
Was trying to sort children array before we checked
if it was empty or not.