return nil for Mean and Average if they are called upon an empty array