add if condition for nil session ratings