chore(file): add promise to checkFile method