public boolean isEmpty() {
        if (!isDisplayed()) {
            return true;
        }
        return getAllMessages().isEmpty();
    }
Component wrapper for the PrimeFaces {@code p:messages}.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/Messages.java