check if file existed before or not