title: Angular & Ionic - Filter boolean
body: <p>I'm trying to get a boolean from this:</p>
  
  <pre><code>var category_data = $filter('filter')(data, {id: id}, true)[0]['subs'];
  </code></pre>
  
  <p>But it does not give me true or false. I'm using it here:</p>
  
  <pre><code>if(!category_data) {
      return false;
    } else {
      return category_data;
    }
  </code></pre>
  
  <p>What i'm doing wrong? Thanks!</p>