protected function withDefaults($messages)
    {
        $defaults = array(
            'details' => '',
            'html' => '',
            'list' => [],
            'buttons' => [],
        );

        foreach ($messages as &$message) {
            $message = array_merge($defaults, $message);
        }

        return $messages;
    }