please note that "stop loop" does not work for "for each array element" task="hello" in the example.
i have also found that "stop loop" doesnt always work for system loops either (a hard bug to find).
best to have a variable to compare to for each loop so that code in the loop isnt called.