$html = str_get_html($text);
$html->find('div[class="image"]',0)->find('a',0)->href;
try {
$html = str_get_html($text);
$html->find('div[class="image"]',0)->find('a',0)->href;
} catch (\Exception $e) {
throw new RuntimeException("tag not found");
}