Fix invalid use of Hash#has_key?