This should probably be:
```
if (empty($currentVersion) && $currentVersion !== '0') {
```

Specifically, the purpose of this check is to ensure an update in used when the version being checked is already in the system. There are actually very few cases in which the ```getVersion()``` method will return a string containing 0, because the version is usually deleted when uninstalling (so it would return an integer 0).