add file exit validation
Merge pull request #7 from agung-wete/foo

add file exist validation
fixed indentation
Checks if file exists