protected static function &getPath(&$m, $path) { foreach ($path as $p) { $m =& $m[$p]; } return $m; }