As this stems from the likes of `get_with_ids`, `criteria` could be an empty array which would result in an error in a valid case. Somewhere, perhaps several places, along the line there wants to be something like:

```ruby
return [] if foo.empty?
```