Comparing ruby versions correctly to determine Array#sample/choice