[#54518668] changing the API from `key?` to `has_key?`