protected function getFromSession(CustomerInterface $customer) { $basket = $this->session->get($this->getSessionVarName($customer)); if ($basket && !$basket->isEmpty()) { return $basket; } return $this->session->get($this->getSessionVarName()); }