check for existence of  before outputting download link