Copperline Workshop sends work orders with a state, a priority code and an array of tasks. A second array contains uploaded photos. You need to distinguish the request-level decision from the task-level loop. A request may contain no tasks, while its photos array can still contain several files.
The practice revisits Conditions, Switch and Apply to each. No new control is needed. Place each message where it belongs: a status notification occurs once per request, while a task notification occurs once per task. The checks include equality boundaries, a blank category and repeated tasks. Open a run with no task effects and inspect the array input before assuming that the loop failed. A successful loop over an empty array has done exactly the requested amount of work.