protected static function convertRouteStrToArray($strRoute)
    {
/*
        try {
            $route = @eval("return $strRoute;"); // security problem
        } catch (Exception $ex) {
            return false;
        }
*/
        $str = trim($strRoute);
        if (substr($str, 0, 1) == '[' && substr($str, -1, 1) == ']') {
            $str = trim($str, "[]");
        } else {
            static::$errorRouteConvert = "Array syntax: not found '[' or ']'";
            return false;
        }
        $array = [];
        $i = 0;
        $parts = explode(',', $str);
        foreach ($parts as $next) {
            $element = explode("=>", $next);
            if (is_array($element) && count($element) == 1) {
                $val = trim($element[0]);
                if ((substr($val, 0, 1) == '"' && substr($val, -1, 1) == '"')
                 || (substr($val, 0, 1) == "'" && substr($val, -1, 1) == "'")
                ) {
                    $array[$i++] = trim($val, "\"'");
                } else {
                    static::$errorRouteConvert = "Array element syntax: '$val'";
                    return false;
                }
            } elseif (is_array($element) && count($element) == 2) {
                $key = trim($element[0]);
                $val = trim($element[1]);
                if (
                    ((substr($key, 0, 1) == '"' && substr($key, -1, 1) == '"') ||
                     (substr($key, 0, 1) == "'" && substr($key, -1, 1) == "'"))
                 &&
                    ((substr($val, 0, 1) == '"' && substr($val, -1, 1) == '"') ||
                     (substr($val, 0, 1) == "'" && substr($val, -1, 1) == "'") ||
                     is_numeric($val))
                ) {
                    $array[trim($key, "\"'")] = trim($val, "\"'");
                } else {
                    static::$errorRouteConvert = "Array element syntax: '$key => $val'";
                    return false;
                }
            } else {
                static::$errorRouteConvert = "Array element syntax";
                return false;
            }
        }
        return $array;
    }