def hasIntent(parsed, intent):
    """ 
    判断是否包含某个意图

    :param parsed: UNIT 解析结果
    :param intent: 意图的名称
    :returns: True: 包含; False: 不包含
    """
    if parsed is not None and 'result' in parsed and \
       'response_list' in parsed['result']:
        response_list = parsed['result']['response_list']
        for response in response_list:
            if response['schema']['intent'] == intent:
                return True
        return False
    else:
        return False