Another thing you could do is check to see if a file exists in the directory, maybe "check.check" (it doesn't really need to be a file with any contents, just a file existing there for the namesake), and run through "(file_exists('check.check'))". It's a little back-route, but if the file exists, the directory has to exist.