[`NodeList#some()`](https://yuilibrary.com/yui/docs/api/classes/NodeList.html#method_some) can be used here instead of `each()`.