[ruby] How to check if a value exists in an array in Ruby