public boolean present() {
        boolean isPresent = false;
        try {
            element.getWebElement().getText();
            isPresent = true;
        } catch (NoSuchElementException | StaleElementReferenceException e) {
            log.info(e);
        }
        return isPresent;
    }
public boolean present ( ) { boolean isPresent = false ; try { element . getWebElement ( ) . getText ( ) ; isPresent = true ; } catch ( NoSuchElementException | StaleElementReferenceException e ) { log . info ( e ) ; } return isPresent ; }
Determines whether the element is present or not.

@return Boolean: whether the element is present or not