This seems a little cleaner:

```
    var file, promptOnly, _forceClose;

    if (commandData) {
        file        = commandData.file,
        promptOnly  = commandData.promptOnly,
        _forceClose = commandData._forceClose; 
    }