public function save()
    {
        $contents = array_filter($this->contents);

        if (empty($contents)) {
            return;
        }

        if (!file_exists($this->filepath)) {
            mkdir($this->filepath);
        }

        return (new YamlFilesystem($contents, $this->filepath))
            ->save(static::FILE_NAME);
    }