public function hasFilesWithName($pattern)
    {
        $result = $this->getFiles(Finder::create()->name($pattern));

        return count($result) !== 0;
    }
public function hasFilesWithName($pattern)
    {
        $result = $this->getFiles(Finder::create()->name($pattern));

        return count($result) !== 0;
    }
public function hasFilesWithName ( $ pattern ) { $ result = $ this -> getFiles ( Finder :: create ( ) -> name ( $ pattern ) ) ; return count ( $ result ) !== 0 ; }
Determine if the plugin has any files with a given name pattern.

@param string $pattern File name pattern

@return bool
Determine if the plugin has any files with a given name pattern .