Use proper fileExists function