title: How to access a method and pass an argument within the template?
body: <p>In my template I want check whether an entity has a relation to another one. Meaning one object is in an attached Object Storage of another one.</p>
  
  <p>In the controller I can simply call:</p>
  
  <pre><code>if ($product-&gt;getCategory()-&gt;offsetExists($category) {
      print 'In category ' . $category-&gt;getName();
  }
  </code></pre>
  
  <p>But I can't figure out the correct syntax in the template. I tried those without luck (both evaluate to <code>true</code> everytime):</p>
  
  <pre><code>&lt;f:if condition="{product.category.offsetExists(category)}"&gt;true&lt;/f:if&gt;    
  &lt;f:if condition="{product.category.offsetExists({category})}"&gt;true&lt;/f:if&gt;
  </code></pre>
  
  <p>Is this even possible within the template?</p>