janl/mustache.js — Issue #153: Inverted Sections do not render in Adobe InDesign enviroment
Author: kapooostin
Created: 2012-01-06 11:51:01+00:00
State: open

It fails because of differences in operator precedence and associativity

```javascript
if (!value || Array.isArray(value) && value.length === 0) {
```
behaves as following:

```javascript
if ((!value || Array.isArray(value)) && value.length === 0) {
```
and fails when we have Boolean as a ```value```.

This

```javascript
if (!value || (Array.isArray(value) && value.length === 0)) {
```
solves the issue