Refactoring and fix typo

Example:

```
if (Yii::$app->getHomeUrl() == 'value1') {
    // do something
}

...

if (Yii::$app->getHomeUrl() !== 'value2') {
    // do something
}
```


Each time will be returned already calculated value that will be stored in the _homeUrl variable.