key_exists is deprecated, array_key_exists instead.