move isElementPresent(locator); into click method