Added \yii\web\User::hasIdentity method