public function append($parts)
    {
        if ($parts instanceof Message) {
            $parts = $parts->toArray();
        } elseif (!is_array($parts)) {
            throw new \Exception('Trying to append non array ('.gettype($parts).').');
        }
        $this->parts = array_merge($this->parts, $parts);

        return $this;
    }