checking for existence of ratings before checking length in review.coffee