core: check if remember file exists before opening it