`#has_key?` is deprecated by `key?`, rubocop would complain