removed check on empty attributes

Validation should be performed no matter if there are attributes or not.