def is_opt_message(text, keyword_list):
    if not isinstance(text, basestring):
        return False

    text = text.strip().upper()
    return keyword_list in text
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/api.py/is_opt_message/swapped operands of `in`