You seem to be missing the closing brace from the first if statement. That's the culprit.
You want:
if (isset($_REQUEST['utm_source']) && (!empty($_REQUEST['utm_source']))) {
// param was set in the query string
echo('present');
} else {
// query string had param set to nothing ie ?param=¶m2=something
echo('missing');
}