Using nil.to_a or whatever.to_a in ruby