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;
    }