public static <T> boolean hasItems(final Collection<T> collection) {
        return collection != null && !collection.isEmpty();
    }
@return True if the collection is non-null and not empty
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java