Check if ratings are set before using them.