Isn't there isElementPresent(String locator) and isTextPresent(String text) function for Selenium object??