public function setAttachments(array $attachments, $merge = true)
    {
        if ($merge) {
            $this->attachments = array_merge($this->attachments, $attachments);
        } else {
            $this->attachments = $attachments;
        }

        return $this;
    }