Semantically, I think it would make more sense to use one of the predicates `Hash` provides for this purpose: `key?`, `has_key?` or `member?`.