check if cache file exists before trying to read it (closes #29)