protected function hasMatchWithIncludedPaths(array $paths, $path)
{
$hasMatch = false;
if ($path !== null) {
foreach ($paths as $targetPath) {
if (strpos($targetPath, $path) === 0) {
$hasMatch = true;
break;
}
}
}
return $hasMatch;
}