That seems ugly/slow. `array_key_exists` should be replaced with `isset` IMHO.