code: protected void checkElementPresence(PageElement pageElement, boolean present) throws FailureException {
          if (present) {
              try {
                  Context.waitUntil(ExpectedConditions.presenceOfElementLocated(Utilities.getLocator(pageElement)));
              } catch (final Exception e) {
                  new Result.Failure<>(e.getMessage(), Messages.getMessage(Messages.FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT), true, pageElement.getPage().getCallBack());
              }
          } else {
              try {
                  Context.waitUntil(ExpectedConditions.not(ExpectedConditions.presenceOfAllElementsLocatedBy(Utilities.getLocator(pageElement))));
              } catch (final Exception e) {
                  new Result.Failure<>(e.getMessage(), Messages.getMessage(Messages.FAIL_MESSAGE_ELEMENT_STILL_VISIBLE), true, pageElement.getPage().getCallBack());
              }
          }
      }
docs: Checks if an html element (PageElement) is displayed.
  
  @param pageElement
  Is target element
  @param present
  Is target element supposed to be present
  @throws FailureException
  if the scenario encounters a functional error. Exception with {@value com.github.noraui.utils.Messages#FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT} message
  (with screenshot, with exception)