safer isElementDisplayed