For checking if a directory exists, a simple solution is to use the "FileWait" action. 

Set the WAIT_FILE_DIR parameter to the path of your directory.

The action will be successfull if the directory exists and will return an error otherwise (unsuccessfull).

 

sample