protected function removeBkFile()
    {
        if (!$this->options["backup"]) {
            return;
        }

        // Remove backup file if the write was successful
        if (!$this->writeErrors && $this->bkFilePath) {
            unlink($this->bkFilePath);
        }
    }