checking if the tag/branch exists before downloading