fix rubocop warning 'PredicateName'