private function _findTreeMatch($tree, $paths)
{
$match = false;
foreach ($tree as $path) {
$match = true;
foreach ($paths as $key => $part) {
if (!isset($path[$key]) || $part != $path[$key]) {
$match = false;
break;
}
}
if ($match) {
break;
}
}
return $match;
}