public static boolean isEmpty(final Collection<?> coll) {
        return coll == null || coll.isEmpty();
    }
Return if a collection is empty.

@param coll a collection
@return whether it is empty
pac4j-core/src/main/java/org/pac4j/core/util/CommonHelper.java