How to Map and Remove nil Values in Ruby | CodeTrail