added if else for no average rating available