Simpler:

```D
const workDirExists = assertNotThrown(workDirEntry = dirEntry(workDir));
```