public function fileExists(string $name)
    {
        if(!$this->_isLoaded) {
            $this->load();
        }

        return in_array($name, $this->_files);
    }
public function fileExists(string $name)
    {
        if(!$this->_isLoaded) {
            $this->load();
        }

        return in_array($name, $this->_files);
    }
public function fileExists ( string $ name ) { if ( ! $ this -> _isLoaded ) { $ this -> load ( ) ; } return in_array ( $ name , $ this -> _files ) ; }
Checks if a file exists in this directory.

@param string $name File name.

@return bool `true` if `$name` exists as a file in this directory, `false` if not.
Checks if a file exists in this directory .