public static boolean isEmpty(@Nullable Map<?, ?> map) {
    return map == null || map.isEmpty();
  }
Checks if given map is null or has zero elements.
android/android_framework/base/src/main/java/github/tornaco/android/thanos/core/util/ArrayUtils.java