public function addItem($url, $lastMod = null):void
    {
        if ($this->has($this->file)) {
            $this->appendItem($url, $lastMod);
        } else {
            $this->create('create', $url, $lastMod);
        }
    }