By.xpath("//button[@id='Edit']")
I will search for all elements with this XPath and put them in List:
List<WebElement> elements = driver.findElements(By.Xpath("//button[@id='Edit']"));
Then I will check if the count (size) of the elements in the list is zero, this will mean that the element was not found.