Check if children is empty, error if so