Contao\Folder::isEmpty PHP Method

isEmpty() public method

Return true if the folder is empty
public isEmpty ( ) : boolean
return boolean True if the folder is empty
    public function isEmpty()
    {
        return count(scan(TL_ROOT . '/' . $this->strFolder, true)) < 1;
    }