// Get the size of the response. If it's zero we can assume there's no data for that record $rsize=$response->size; if ($rsize==0) { return false; } else { foreach ($response->records as $record) { return $record->fields->Email; } }

}

catch (Exception $e)

{ // Output exception echo $e; }

}
And that's it - it should return the email address if there is one, and false if not.