check if sphere_model is not flat to avoid NaNs returned from scipy.stats.pearsonr