protected function isDir($dir)
    {
        try {
            $this->doChangeDir($dir);
            $this->doCdUp();

            return true;
        } catch (\Exception $ex) {
            return false;
        }

        return false;
    }
protected function isDir($dir)
    {
        try {
            $this->doChangeDir($dir);
            $this->doCdUp();

            return true;
        } catch (\Exception $ex) {
            return false;
        }

        return false;
    }
protected function isDir ( $ dir ) { try { $ this -> doChangeDir ( $ dir ) ; $ this -> doCdUp ( ) ; return true ; } catch ( \ Exception $ ex ) { return false ; } return false ; }
Check if is dir.

@param   string  path to folder

@return bool
Check if is dir .