{"action":"opened","issue":{"url":"https://api.github.com/repos/jknack/handlebars.java/issues/351","labels_url":"https://api.github.com/repos/jknack/handlebars.java/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/jknack/handlebars.java/issues/351/comments","events_url":"https://api.github.com/repos/jknack/handlebars.java/issues/351/events","html_url":"https://github.com/jknack/handlebars.java/issues/351","id":59283038,"number":351,"title":"#if and #each statement should evaluate false when a map object is empty","user":{"login":"b3nshi","id":5185291,"avatar_url":"https://avatars.githubusercontent.com/u/5185291?v=3","gravatar_id":"","url":"https://api.github.com/users/b3nshi","html_url":"https://github.com/b3nshi","followers_url":"https://api.github.com/users/b3nshi/followers","following_url":"https://api.github.com/users/b3nshi/following{/other_user}","gists_url":"https://api.github.com/users/b3nshi/gists{/gist_id}","starred_url":"https://api.github.com/users/b3nshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b3nshi/subscriptions","organizations_url":"https://api.github.com/users/b3nshi/orgs","repos_url":"https://api.github.com/users/b3nshi/repos","events_url":"https://api.github.com/users/b3nshi/events{/privacy}","received_events_url":"https://api.github.com/users/b3nshi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-27T19:34:37Z","updated_at":"2015-02-27T19:34:37Z","closed_at":null,"body":"I'm running this code, and is always evaluating to \"true\" the if statement.\r\n```\r\n{{#if applications}}\r\n  {{#each applications}}\r\n    {{!-- Do something --}}\r\n  {{/each}}\r\n{{else}}\r\n  Map is empty\r\n{{/if}}```\r\n\r\nI made it work using instead: {{#if applications.size}}\r\n"}}