private function excludeLink($href)
    {
        //If href string contains any of the 'words' in $excludes array, return true
        $excluded = false;
        foreach ($this->excludes as $word) {
            if (strpos($href, $word) !== false) {
                $excluded = true;
                break;
            }
        }
        return $excluded;
    }
private function excludeLink($href)
    {
        //If href string contains any of the 'words' in $excludes array, return true
        $excluded = false;
        foreach ($this->excludes as $word) {
            if (strpos($href, $word) !== false) {
                $excluded = true;
                break;
            }
        }
        return $excluded;
    }
private function excludeLink ( $ href ) { //If href string contains any of the 'words' in $excludes array, return true
 $ excluded = false ; foreach ( $ this -> excludes as $ word ) { if ( strpos ( $ href , $ word ) !== false ) { $ excluded = true ; break ; } } return $ excluded ; }
Evaluates if a link to a pdf document is not a valid domains document pdf and should be excluded
@param $href   Link to the pdf document
@return bool   Evaluation result
Evaluates if a link to a pdf document is not a valid domains document pdf and should be excluded