Should this support arrays? Like:

```ruby
def next_contains_location?
  next.any? { |next_state| next_state.is_a?(Hash) && next_state['location']  }
end
```