'If a feed element does not have enough apps, return None.
Else return the feed element.'

def filter_feed_element(self, request, feed_element, item_type):

    if (not feed_element):
        return None
    if (request.query_params.get('filtering', '1') == '0'):
        return feed_element
    if (('app_count' in feed_element) and (feed_element['app_count'] == 0)):
        return None
    if ((item_type == feed.FEED_TYPE_APP) and (not feed_element['app'])):
        return None
    if ((item_type == feed.FEED_TYPE_COLL) and (feed_element['app_count'] < feed.MIN_APPS_COLLECTION)):
        return None
    return feed_element
