public static boolean isDirEmpty(String path)
	{
		if(isPathValid(path))
		{
			if(isDirectory(path) & dirExist(path))
			{
				File dir = new File(path);

				// Get list of file in the directory. If the length is zero
				// then the folder is empty.

				String[] files = dir.list();

				if (files.length == 0) 
					return true;
				else
					return false;
			}
			else { return false; }
		}
		else
			return false;
	}