check file exists instead of catch exception