private function checkIfPathContainsIgnoredWord($path) { foreach ($this->ignoreList as $ignoreItem) { if (mb_stripos($path, $ignoreItem) !== false) { return true; } } return false; }