private function addOutput(string $key, string $value = null)
    {
        if (!array_key_exists($key, $this->output)) {
            $this->output[$key] = [];
        }

        $this->output[$key][] = $value;
    }