private boolean isElementPresent(By by) {
	  driver.manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS);
    try {
      driver.findElement(by);
      driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
      return true;
    } catch (NoSuchElementException e) {
    	driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
      return false;
    }
  }