All this could be made into two lines. :-)
```
file = ImportingFile.documents.findOne @_id
'invisible' if file?.finished or file?.canceled or file?.errored
```