here and elsewhere I would suggest favoring early return so you can nest less code..

```js
if (!Array.isArray(value)) return false;
```