.switch in_array for array_key_exists.