On the vanishing of group cohomology