How to check if in directory "713" there is any directory (not files)? it has to be smart enough to ignore file existance
...
...
$workRecordFullPath = "/var/www/websites/AM_dev/app/webroot/files/submissions/57601/4189/713/";
// check if folder "713" exists
if (file_exists($workRecordFullPath)) {
// check if into 713 there is any directory
if (!is_dir($workRecordFullPath)) {
return true;
}
}
return false;