code: public static void notEmpty(Object[] array, Supplier<String> message) {
      if (isEmpty(array)) {
        throw new IllegalArgumentException(message.get());
      }
    }
docs: Asserts that the {@link Object array} is not empty.
  
  The assertion holds if and only if the {@link Object array} is not {@literal null} and contains at least 1 element.
  
  @param array {@link Object array} to evaluate.
  @param message {@link Supplier} containing the message using in the {@link IllegalArgumentException} thrown
  if the assertion fails.
  @throws java.lang.IllegalArgumentException if the {@link Object array} is {@literal null} or empty.
  @see java.lang.Object[]