public function isEmpty($directory = null)
    {
        if (!$this->exists($directory)) {
            return true;
        }
        $i = new FilesystemIterator($this->dir . $directory);

        return !$i->valid();
    }