Per the [thoughtbot style guide](https://github.com/thoughtbot/guides/tree/master/style#ruby) could we refactor this so that it does not use a trailing conditional?

> Avoid conditional modifiers (lines that end with conditionals).
https://github.com/thoughtbot/guides/tree/master/style#ruby