public function delete(): bool
    {
        if (is_file($this->path)) {
            if (is_writable($this->path)) {
                return unlink($this->path);
            }
            throw new FileException('Cannot delete file, because ('.$this->path.') is not writable', FileException::NOT_WRITEABLE);
        }

        return true;
    }