Style nitpick: per https://github.com/styleguide/ruby `then` statements should be omitted in multiline conditionals. Not a big deal, but FYI.