check_var_downloaded function

Internal function to check whether we have downloaded a given variable for a dataset