code: @Override
  	public boolean isElementPresent(boolean isJavaXPath) throws WidgetException {
  		try {
              final boolean isPotentiallyXpathWithLocator =
                      (locator instanceof EByFirstMatching) || (locator instanceof EByXpath);  
  
  			if (isJavaXPath && isPotentiallyXpathWithLocator) {
  				return isElementPresentJavaXPath();
  			} else {
  				findElement();
  				return true;
  			}
  		} catch (NoSuchElementException e) {
  			return false;
  		} catch (Exception e) {
  			return false;
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see
  qc.automation.framework.widget.IElement#isElementPresent(java.lang.Boolean
  )