check if the opened file is exists