you should use `array_key_exists` instead of `isset`. If the value is `null`, `isset` will return false