Or since they're both regexp: `params[:controller].match(/^(dashboard|my)/)` ?