Avoid using non-boolean values in `if` checks -- instead, call some method on the object that does return a boolean value (like `.present?`), or use an alternate method (like `user_signed_in?`) that does.