title: Length of array in jade undefined
body: <p>I have code i want to show count of tables in restaurant My code is:</p>
  
  <pre><code>#{restaurant.tables.length}
  </code></pre>
  
  <p>But it not works for me and error me "Cannot read property 'length' of undefined".how can i solve this?</p>
  
  <p>tables is array i fetch from mongodb collection.</p>
  
  <p>i use mongoosejs "findOne" method, and my restaurant schema is :</p>
  
  <pre><code> var restuarantSchema = new Schema({
      name : String,
      details : String,
      owner : String,
      categories : {
         name : String
      },
      users : [],
      tabels: [{
          title: String
      }]
  });
  </code></pre>