presto-main/src/main/java/io/prestosql/sql/gen/CompilerOperations.java/CompilerOperations/testMask
class CompilerOperations:    public static boolean testMask(@Nullable Block masks, int index)
    {
        if (masks != null) {
            return BOOLEAN.getBoolean(masks, index);
        }
        return true;
    }