private function methodAllowedTransform(string $methods):array
    {
        if (is_string($methods) || $this->isJsonMercureFormat($methods)) {
            switch ($methods) {
                case $this->isJsonMercureFormat($methods) == 1:
                    $r = $this->trsJsonMercureToArray($methods);
                    foreach ($r as $one) {
                        if ($this->checkMethodExist($one)) {
                            continue;
                        }
                    }
                    return ($r);
                    break;
                case is_string($methods):
                    if ($this->checkMethodExist($methods)) {
                        return (array($methods));
                    }
                    break;
                default:
                    new Server500(new \ArrayObject(
                        array("explain" => "Invalid format for Allowed methods request (m_allow)",
                            "solution" => "Please check the 'm_allow' tag format")
                    ));
            }
        } else {
            new Server500(new \ArrayObject(
                array("explain" => "Invalid format for Allowed methods request (m_allow)",
                    "solution" => "Please check the 'm_allow' tag format")
            ));
        }
        return (array());
    }