public static <T> T[] checkNotEmpty(T[] expression, @Nullable String errorMessageTemplate,
	                                    @Nullable Object... errorMessageArgs) {
		if (expression == null || expression.length == 0) {
			throw new IllegalArgumentException(format(errorMessageTemplate, errorMessageArgs));
		}
		return expression;
	}
Ensures that an object reference passed as a parameter to the calling method is not null and also not empty.

@param <T>                  type
@param expression           array
@param errorMessageTemplate error message
@param errorMessageArgs     args
@return the non-null reference and the non-empty value that was validated
ngrinder-core/src/main/java/org/ngrinder/common/util/Preconditions.java