public function writeRow(array $data = [], $finalize = true)
    {
        $lastDataKey = $this->getLastArrayKey($data);
        foreach ($data as $key => $value) {
            $coordinate = sprintf('%s%d', $this->getCurrentColumn(), $this->getCurrentRow());
            $this->worksheet->setCellValue($coordinate, $value);
            if ($key !== $lastDataKey) {
                $this->nextColumn();
            }
        }

        if ($finalize) {
            $this->nextRow();
        }

        return $this;
    }