public function delete(string $name): self
    {
        if (isset($this->data[$name])) {
            unset($this->data[$name]);
        }
        return $this;
    }
public function delete(string $name): self
    {
        if (isset($this->data[$name])) {
            unset($this->data[$name]);
        }
        return $this;
    }
public function delete ( string $ name ) : self { if ( isset ( $ this -> data [ $ name ] ) ) { unset ( $ this -> data [ $ name ] ) ; } return $ this ; }
Deletes a cookie if exists.

@param string $name The name of the cookie to delete.
@return self Returns a reference to itself.
Deletes a cookie if exists .