I tried the some() method a while ago, but even though it works fine with my browser, it failed in CasperJS.
I found out that it was because 'allTags' was a NodeList, and not an Array. I could either transform the NodeList into an array with [].slice, or use the forEach method and throw an exception. I chose the second option for performance sake.

If you have any other solutions in minds,  feel free to post them.