Ruby 2.0 doesn't have Array#to_h