add function to check if a file exists
Merge pull request #3 from arraydev/virtualDirExists

add function to check if a file exists