Using the is_portfolio? method you added to app/models/user.rb would be a bit clearer here.