check if file exists before we open it to read it