code: public boolean isElementPresent(final WebElement element, final By by) {
  		try {
  			element.findElement(by);
  		} catch (Exception e) {
  			return false;
  		}
  		return true;
  	}
docs: Checks if the supplied {@code element} contains another element
  identified by {@code by}.
  
  @param by
  the method of identifying the element
  @param element
  the root element that will be searched
  @return true if {@code element} contains an element identified by
  {@code by} or false otherwise