protected function _subdirs($path)
{
if ($dir = dir($path)) {
$dir = dir($path);
while (($entry = $dir->read()) !== false) {
$p = $dir->path . DIRECTORY_SEPARATOR . $entry;
if ($entry != '.' && $entry != '..' && is_dir($p) && !$this->attr($p, 'hidden')) {
$dir->close();
return true;
}
}
$dir->close();
}
return false;
}