empty arrays are a valid parameter too

Without this fix

```
new JInput(array());
```

doesn't work.