public static boolean isEmpty(@Nullable Map<?, ?> map) {
        return (map == null || map.isEmpty());
    }
Return {@code true} if the supplied Map is {@code null} or empty.
Otherwise, return {@code false}.

@param map the Map to check
@return whether the given Map is empty
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/util/CollectionUtils.java