extended `fsm.is()` to accept an array of states (in addition to just a single state)