Adding isEmpty to model validations