or should I just return inside the for-loop instead of breaking and then checking localError after the loop? I'll push my code with this change and see what you think.