unreadCount === null) { $customerId = (int)$this->session->getCustomerId(); $this->unreadCount = $customerId > 0 ? $this->conversations->getCustomerUnreadTotal($customerId) : 0; } return $this->unreadCount; } }