public static <T> boolean hasLength(final T[] array) {
        return array != null && array.length != 0;
    }
<p>Checks if an array of Objects is not empty and not {@code null}.

@param <T>   the component type of the array
@param array the array to test
@return {@code true} if the array is not empty and not {@code null}
@since 1.7.0
commons/src/main/java/com/navercorp/pinpoint/common/util/ArrayUtils.java