Yes, but because the assertion is for the absence of something, it could give a false positive. This guards against the set being empty.