title: Zend Framework 2, InputFilter validate array of value
body: <p>I'm using an InputFilter to validate my data but no Zend\Form.</p>
  
  <pre><code>    $entities = new Input('entities');
      $entities-&gt;setRequired(false);
      return $entities;
  </code></pre>
  
  <p>Entities is a collection of Entity.</p>
  
  <p>I don't know how to check that entities is a valid array and then that each value of entities is a valid entity.</p>