First `array_key_exists()` is taking an eternity to execute and now this ... I guess PHP sucks at looking for NULLs.
Do as you wish then - it seems that there will always be a trade-off of some kind.