title: Check existence of a variable in handlebar
body: <p>I've a javascript object like :</p>
  
  <pre><code>var data = {
  "current" : 0,
  "max" : 5,
  "reward" : 5
  };
  </code></pre>
  
  <p>And  I'm crating a HTML with this data using handlebar like :</p>
  
  <pre><code>&lt;div&gt;
  &lt;span&gt;Current : {{current}}&lt;/span&gt;
  &lt;span&gt;Max : {{max}}&lt;/span&gt;
  &lt;span&gt;Reward: {{reward}}&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now the problem is, the reward property may not be always present in the data, and in that case I don't want to show that span. So, I made the following:-</p>
  
  <pre><code>{{#if reward}}
   &lt;span&gt;Reward: {{reward}}&lt;/span&gt;
  {{/if}}
  </code></pre>
  
  <p>And it's working, if the reward property is not present, it's not showing the span, but it's also not showing the span if the value of reward is 0, can anybody suggest how to solve it. I can use some helper function. But, can I do that without using any helper function?</p>