Mustache - How to detect array is not empty?
===

I want to implement the following logic with mustach:

    {{#if users.length > 0}}
        <ul>
            {{#users}}
                <li>{{.}}</li>
            {{/users}}
        </ul>
    {{/if}}

    // eg. data = { users: ['Tom', 'Jerry'] }
    
Should I modify the `users` structure to meet the need? For example:

    {{#hasUsers}}
        <ul>
            {{#users}}
                <li>{{.}}</li>
            {{/users}}
        </ul>
    {{/hasUsers}}

    // eg. data = { hasUsers: true, users: ['Tom', 'Jerry'] }


