`null` is a perfectly valid value. Please use `if (isset($a[$key]) || array_key_exists($key, $a)) {` if performance is the scope of this PR