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

@param <T> the component type of the array
@param array  the array to test
@return {@code true} if the array is not empty or not {@code null}
@since 2.5
android/android_framework/base/src/main/java/lang3/ArrayUtils.java