need to account for null values

isset will return false if value is null which is not what we want. `array_key_exists` will still be faster than `array_search`