Replaced Hash#has_key? is deprecated method with Hash#key?