How to set up Views PHP filter? I'm trying to use Views PHP filter feature to remove rows which don't contain some data (I can't just use "Hide if empty" feature, because the module returns a string even if there is no real value.

I'm using this string for a filter, however, if doesn't work - instead of filtering, view returns all values.

return isset($data-&gt;_field_data['nid']['entity']-&gt;field_poloha_obce_pol[und][0][geometry]);


I tried to inspire myself from some of the similar issues here, but it seems to me, that everything should be correct.

I also tested this exact code as PHP field and it returns expected value.
Try

 return empty($data-&gt;_field_data['nid']['entity']-&gt;field_poloha_obce_pol['und'][0]);