src/mako/file/FileSystem.php
public function isEmpty(string $path): bool
	{
		if(is_dir($path))
		{
			return (new FilesystemIterator($path))->valid() === false;
		}

		return filesize($path) === 0;
	}
public function isEmpty(string $path): bool
	{
		if(is_dir($path))
		{
			return (new FilesystemIterator($path))->valid() === false;
		}

		return filesize($path) === 0;
	}
public function isEmpty ( string $ path ) : bool { if ( is_dir ( $ path ) ) { return ( new FilesystemIterator ( $ path ) ) -> valid ( ) === false ; } return filesize ( $ path ) === 0 ; }
Returns TRUE if a file or directory is empty and FALSE if not.

@param  string $path Path to directory
@return bool
Returns TRUE if a file or directory is empty and FALSE if not .