Added variance check extension method.