public static function toString($levels, $spvar, $var) {
        return ($spvar ? '@' : '') . str_repeat('../', $levels) . ((is_array($var) && count($var)) ? implode('.', array_map(function($v) {
            return ($v === null) ? 'this' : "[$v]";
        }, $var)) : 'this');
    }