Here, I changed this code to:
```javascript
      if (memUsage) {
        memStats.push(memUsage);
      }
```

so that we can test for the length later at the end