Added code to check url before trying to download. Decreases load times.