Rails 5 introduces Array Inquirer that wraps an array object and provides friendlier methods to check for the presence of elements that can be either a string or a symbol. 1 2pets = ActiveSupport::ArrayInquirer.new([:cat, :dog, 'rabbit']) 3 4> pets.cat? 5#=> true 6 7> pets.rabbit? 8#=> true 9 10> pets.elephant? 11#=> false 12 Copy Array Inquirer also has any? method to check for the presence of an