Fix array_key_exists call