How to check if an element exist using selenium webdriver

driver.findElements(By.id(“id”)).size()!=0

No images available.