public boolean hasAttributeValue() {
        return StringUtils.isNotBlank(attribute) && principal.getAttributes().containsKey(attribute);
    }
Has attribute value for the principal?

@return true/false
core/cas-server-core-notifications-api/src/main/java/org/apereo/cas/notifications/sms/SmsRequest.java