public function checkFilter($path)
    {
        //No filters? Include all paths.
        if (empty($this->filters)) {
            return true;
        }

        //Match either with or without braces.
        $cleanPath = str_replace(array('{', '}'), array('', ''), $path);
        foreach ($this->filters as $filter) {
            if (stripos($path, $filter) !== false || stripos($cleanPath, $filter) !== false) {
                return true;
            }
        }
        return false;
    }