@tmertens readability suggestion:
```ruby
return data unless data.is_a? Enumerable
```