def filter_restaurants(restaurants, reviews):
    """
    Filter restaurants to remove those with no reviews.

    Parameters:
        restaurants - the restauraunts to be filtered
        reviews - a dictionary of reviews with restaurant ids for keys

    Returns:
        The filtered list of restaurants.
    """
    filtered_restaurants = [restaurant for restaurant in restaurants if restaurant["business_id"] in reviews]
    return filtered_restaurants