to have this using promise, it'd be like this:
```
var defer = q.defer();
ProjectManager.getProjectRoot().getContents(function (err, entries) {
    if (err) { defer.reject(err); }
    defer.resolve(entries.length === 0);
});
return defer.promise;
```