Yii 2 code style requires using `{` even for single line `if`.