public function existsForCart(CartId $cartId) : bool { return array_key_exists((string) $cartId, $this->checkouts); }