This should be faster without the `present?` check, and possibly with `key?` only. But probably `each + return` should yield even better results:

```ruby
  RENDER_FORMATS_IN_PRIORITY.each { |format|
    return options[format] if options.key?(format)
  }
```