public function hasCookie(string $name) : bool { return array_key_exists((string) $name, $this->cookies); }