Or with `else` in case https://github.com/yiisoft/yii2/pull/505/files#r4565291 is OK.