Use isset instead of array_key_exists.
Fix broken PR.