getRecommendations fucntion fixed when it returns nothing