check element does not exist in the array in rails nil code example Example: ruby array has element >> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true