what about null values? should this be `array_key_exists`?