public static boolean isNullOrEmpty(Object[] array) {
        return array == null || array.length == 0;
    }
Check whether the given array is either {@code null} or empty (i.e., has zero length).

@param array the array to check
@return check result
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/Util.java