public function get_cart_item($item_key) { if (isset($this->cart_contents[$item_key])) { return $this->cart_contents[$item_key]; } return array(); }