/** * Tests to see if an image exists with this * title or alt text. * @param string $label Image text. * @return boolean True if present. * @access public */ function isImage($label) { return (bool) $this->page->getFormByImage(new SimpleByLabel($label)); }