public static void checkNotNullOrEmpty(byte[] array, String exceptionMessage) {
    if (array == null || array.length == 0) {
      throw new IllegalArgumentException(exceptionMessage);
    }
  }
Check whether the given byte array is null or empty and throw IllegalArgumentException if so.

@param array The array to check.
@param exceptionMessage The IllegalArgumentException message to use if null or empty.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java