public static boolean isEmpty(@Nullable int[] array) {
    return array == null || array.length == 0;
  }
Checks if given array is null or has zero elements.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/ArrayUtils.java