public static function isDirEmpty($directory){
        $path = self::concat(array($directory, '*'));
        return (count(glob($path, GLOB_NOSORT)) === 0 );
    }
public static function isDirEmpty($directory){
        $path = self::concat(array($directory, '*'));
        return (count(glob($path, GLOB_NOSORT)) === 0 );
    }
public static function isDirEmpty ( $ directory ) { $ path = self :: concat ( array ( $ directory , '*' ) ) ; return ( count ( glob ( $ path , GLOB_NOSORT ) ) === 0 ) ; }
Check if the directory is empty

@param string $directory
@return boolean
Check if the directory is empty