presto-thrift-api/src/main/java/io/prestosql/plugin/thrift/api/datatypes/PrestoThriftTypeUtils.java/PrestoThriftTypeUtils/sameSizeIfPresent
class PrestoThriftTypeUtils:    public static boolean sameSizeIfPresent(boolean[] nulls, int[] sizes)
    {
        return nulls == null || sizes == null || nulls.length == sizes.length;
    }