The FolderExists method checks if a folder exists in internal or exernal file storage.
exists = app.FolderExists( fileName );
See also FileExists, MakeFolder
Example
function OnStart()
{
exists = app.FolderExists( "/sdcard/IOIOScript" );
app.ShowPopup( exists );
}