def wrong_event_name?(name, event_type)
      machine.states.include?(name) &&
      !machine.events.include?(name) &&
      event_type < HookEvent::Anyaction
    end
def wrong_event_name?(name, event_type)
      machine.states.include?(name) &&
      !machine.events.include?(name) &&
      event_type < HookEvent::Anyaction
    end
Check if event name exists

 @param [Symbol] name

 @param [FiniteMachine::HookEvent] event_type

 @return [Boolean]

 @api private