Note that this function is only useful if you know that no other
threads can be modifying the state of the SampleVar, because
otherwise the state of the SampleVar may have changed by the time
you see the result of isEmptySampleVar.