You would can refactoring this code and improve it .
First you wonder if ```overall_average.present?``` then put yours magics lines of code