params['notifications'])) { foreach ( \Yii::$app->params['notifications'] as $notification ) { $count += $notification['count']; } } return $this->render('notification-count', [ 'notifications' => isset(\Yii::$app->params['notifications']) ? \Yii::$app->params['notifications'] : [], 'count' => $count, ]); } }