Type checking is expensive in Ruby. Do we need to ensure that the object here is actually an `Array`? or do we just care about what it can do?

Can we use `respond_to?` instead?

```ruby
if doc_or_docs.respond_to?(:collect)
  # do stuff
else
  # do other stuff
end
```