Does the evolution of self-fertilization rescue populations or increase the risk of extinction?