This code can be more concisely written:
```ruby
def event_number_check
  @message =  "You have to choose 1 or 2 events."
   params[:attendee][:event_ids].present?
end
```