Instead of testing if the archive has been downloaded I would rather test if the file exist so I can remove the archive after it has been downloaded.