I suppose this can also work `transitions_for[event].has_key?(state)`