Hi :) Is it really necessary to check if the vars are set ? Maybe you can just do: 
```
$this->storage->flush();
$this->storage->clear($this->storage->getModelClass('file'));
$this->storage->clear($this->storage->getModelClass('trans_unit'));
$this->storage->clear($this->storage->getModelClass('translation'));
```