in reply to Check if a directory exists?

yes. I believe that -d is the test you want.