public static boolean doesParameterExist(final HttpServletRequest request, final String name) {
        val parameter = request.getParameter(name);
        if (StringUtils.isBlank(parameter)) {
            LOGGER.error("Missing request parameter: [{}]", name);
            return false;
        }
        LOGGER.debug("Found provided request parameter [{}]", name);
        return true;
    }
Check if a parameter exists.

@param request the HTTP request
@param name    the parameter name
@return whether the parameter exists
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/http/HttpRequestUtils.java