yes, only you don't need to parentheses: subject.account_type?('basic')