[TASK] Rework conjunction dependent loop to a single foreach