Some validations for empty objects.