Remove has_key method as it's deprecated.