check file exists instead of catch exception
Merge pull request #2 from yangcheng/master

check file exists instead of catch exception