public function isEmptyDirectory($location = null)
    {
        $returnValue = false;

        if ($location === null) {
            $location = $this->getLocation();
        }

        if (is_readable($location) && is_dir($location)) {
            $iterator = new RecursiveDirectoryIterator($location, RecursiveDirectoryIterator::SKIP_DOTS);
            $returnValue = iterator_count($iterator) === 0;
        }

        return $returnValue;
    }
public function isEmptyDirectory($location = null)
    {
        $returnValue = false;

        if ($location === null) {
            $location = $this->getLocation();
        }

        if (is_readable($location) && is_dir($location)) {
            $iterator = new RecursiveDirectoryIterator($location, RecursiveDirectoryIterator::SKIP_DOTS);
            $returnValue = iterator_count($iterator) === 0;
        }

        return $returnValue;
    }
public function isEmptyDirectory ( $ location = null ) { $ returnValue = false ; if ( $ location === null ) { $ location = $ this -> getLocation ( ) ; } if ( is_readable ( $ location ) && is_dir ( $ location ) ) { $ iterator = new RecursiveDirectoryIterator ( $ location , RecursiveDirectoryIterator :: SKIP_DOTS ) ; $ returnValue = iterator_count ( $ iterator ) === 0 ; } return $ returnValue ; }
If directory is empty.

@access public
@author Jonathan VUILLEMIN <jonathan@taotesting.com>
@param string $location location
@return boolean
If directory is empty .