If there isn't nothing to optimize, then we can leave it like this. If not switching to `CollectionUtils.some` is as easy as adding `return !isFolder` inside the if and `return false` outside.