How to Check if a Hash Key Exists in Ruby | CodeTrail