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

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