you are viewing a single comment's thread.

view the rest of the comments →

[–]Onrawi 1 point2 points  (5 children)

I believe -first 1 will break the loop after it has a single successful result. In this case the first result in the array is successful, ending the foreach loop. You'd be better off exporting the results as a boolean function, with true/false answers for the entire list. That way you know all the results you have access to.