public static <T> boolean isEmpty(T[] array) {
        return array == null || array.length == 0;
    }
Checks if given array is null or has zero elements.
common/src/main/java/org/conscrypt/ArrayUtils.java