$pointer2 = $sth2->fetchrow_hashref; $image = $pointer2->{'image'}; if ($image) { How do I verify it exists? }