here it'd be
```
Main.isProjectRootEmpty().then(function (isEmpty) { ...
```