title: Handlebars renders extra empty objects from json array in Node Express app
body: <p>I'm trying to take the data from a call to REST API, and render it as a list using Handlebars, which is my view engine in a Node Express App</p>
  
  <p>Here is my route:</p>
  
  <pre><code>router.get('api/projects', function(req, res){
  
      Project.find(function(err, projects){
          if(err)
              res.send(err);
  
          console.log(projects);
  
          res.render('list-view', projects);
      });
  });
  </code></pre>
  
  <p>The "projects" JSON array contains different projects with Name and _id keys</p>
  
  <p>Here is my html on list-view.hbs:</p>
  
  <pre><code>{{#each .}}
  
  &lt;div class="thumbnail"&gt;
    &lt;div class="caption"&gt;
      &lt;h5&gt; Name: {{name}} &lt;/h5&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  {{/each}}
  </code></pre>
  
  <p>For some reason, my list-view page will render the projects in a list as planned, but then will always show a few empty projects at the end of the list.  I can't figure out why.  So say I have 8 projects in my projects array...my page will render all 8 correctly, but 11 in total because the last few are empty.  I used console.log(projects) to verify that there were only 8 projects in the array.  Any ideas on why I am getting extra?</p>