code: public boolean has() {
          return attributeHolder.getAttribute(getMessagesKey(), UserMessages.class).filter(messages -> {
              return !messages.isEmpty();
          }).isPresent();
      }
docs: Does it have messages as (global or specified property) user messages at least one?
  @return The determination, true or false.