protected function urlMatchesPattern(array $patternList) { foreach ($patternList as $p) { if (preg_match($p, $this->url)) { return true; } } return false; }