Add isOffline check to checkDownloads