Notice: Undefined index: field_brand_image in include() in views field template
One way of doing that is using a empty to check the field as following:

&lt;?php print (!empty($fields['field_brand_image'])) ? 
  $fields['field_brand_image']-&gt;content : ''; ?&gt;