modifier 'if' for rubocop