In order to use the php file_exists() function you need the server root relative path. The wp_upload_dir() function provides the path to the uploads directory. You can then use that path in combination with many php functions to achive your goal. This snippet creates a new directory called "myNewDirectory" if it does not exist.
