from in to has_key(name)

used a deprecated function and got a different, yet better error