protected function isSourceAlreadyFetched($version) : bool
    {
        $storagePath = $this->config['download_path'].'/'.$version;
        if (! File::exists($storagePath) || empty(File::directories($storagePath))
        ) {
            return false;
        }

        return true;
    }
protected function isSourceAlreadyFetched($version) : bool
    {
        $storagePath = $this->config['download_path'].'/'.$version;
        if (! File::exists($storagePath) || empty(File::directories($storagePath))
        ) {
            return false;
        }

        return true;
    }
protected function isSourceAlreadyFetched ( $ version ) : bool { $ storagePath = $ this -> config [ 'download_path' ] . '/' . $ version ; if ( ! File :: exists ( $ storagePath ) || empty ( File :: directories ( $ storagePath ) ) ) { return false ; } return true ; }
Check if the source has already been downloaded.

@param string $version A specific version

@return bool
Check if the source has already been downloaded .