Don't use `or` here, use `||` instead. `or` and `and` should only really be used for control flow when related chaining operations for both consistency with the general house style and to avoid any future headaches due to the slightly different precedence. See http://devblog.avdi.org/2010/08/02/using-and-and-or-in-ruby/