i think you may have commented a bit too much code it should look like this
if (!$source)
{
// try {
// $source_title = $item->data['child']['']['source'][0]['data'];
// $source_permalink = $item->data['child']['']['source'][0]['attribs']['url'];
// } catch (Exception $ex) {}
}