Something like

if ($listing->fields['upc']!='') {
echo '<span><strong>UPC:</strong> '. $listing->fields['upc'] . '' . '</span><br />';
}