This could be written as:
```js
return this.currentActivity ? null : this.currentActivity.source.name;
```