Good fix, but the following would be a bit cleaner:

```ruby
opts.merge!(options) if options.is_a?(Hash)
```

Not to be nit-picky, just trying to keep consistent styling :)