public static boolean hasOne(boolean[] arr) {
        for (boolean v : arr) {
            if (v) return true;
        }
        return false;
    }
{@link java.util.function.Function} to {@link com.google.common.base.Function}.
indexr-common/src/main/java/io/indexr/util/Trick.java