Why not:

```js
installApp = stdout.match(apkInstalledRgx === null);
```

From https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/match:

> If the regular expression includes the g flag, the method returns an Array containing all matches. If there were no matches, the method returns null.