How to check if a file exists, if doesn't exists, then download it?