Preprocessing a front page block causes errors on other pages: why?
Try:

&lt;?php
if (isset($variables['view']-&gt;result[0]-&gt;_field_data)) {
// 
?&gt;


Instead of your weird if/else construct. Not really sure what you are trying to accomplish with that code, so there might be a better way to check if you want to execute it or not.