Set a boolean variable to false, iterate over the group of players, in the loop the boolean is set to true. After that ask for the state of the variable.
Of course, there are already functions. Integer function "Player - Count Players In Player Group" for example would give you the amount that you only need to compare to zero. It works the same way though, iterates over the force and increments an integer instead.