Safe ways to convert values into array in Ruby | Hacker News Reader