Fix double and conditional on has_event.rb