/** * Get the carts content, if there is no cart content set yet, return a new empty Collection * */ protected function getContent() { $content = $this->session->getContent(); if (null === $content) { return new Container(); } return $content; }