Is this the same as:

```
console.log(report);
if (report.onComplete) {
  report.onComplete();
```
?