Shouldn't we use `isset` instead of `array_key_exists` in this method for performance reasons?