private function groupIsSecure() : bool
    {
        foreach ($this->groupOptionsStack as $groupOptions) {
            if (isset($groupOptions['https']) && $groupOptions['https']) {
                return true;
            }
        }

        return false;
    }