check existing file