`@events.empty?(step.id)`? That is not valid ruby code, is it? Maybe it's worth to think a bit more about events in non-suspended state.