title: How to check a multidimensional Twig array for values?
body: <p>To simply check if an array contains a certain value I would do:</p>
  
  <pre><code>{% if myVar in someOtherArray|keys %}
  ...
  {% endif %}
  </code></pre>
  
  <p>However, my array is multi-dimensional.</p>
  
  <pre><code>$tasks = array(
      'someKey' =&gt; 'someValue',
      ...
      'tags' =&gt; array(
          '0' =&gt; array(
              'id'   =&gt; '20',
              'name' =&gt; 'someTag',
          ),
          '1' =&gt; array(
              'id'   =&gt; '30',
              'name' =&gt; 'someOtherTag',
          ),
      ),
  );
  </code></pre>
  
  <p>What i would like is to be able to check if the <code>$tasks['tags']</code> has tag id 20. I hope I'm not confusing you by using the PHP array format.</p>