import re


def elision_after_foot(n, l):

    """Is there elision after foot n?

    Args:
        n (int): Foot number to check (1..6)
        l (bs4 <line>): Line to check

    Returns:
        (bool): The result
    """

    if l["pattern"] == "corrupt":
        raise ValueError("Can't operate on a corrupt line!")

    try:
        for w in l("word"):
            if re.search("%d[Tc]" % n, w["sy"]):
                if w.has_attr("mf") and w["mf"] == "SY":
                    return True
                return False

        return False

    except:
        raise ValueError("Can't handle this: %s" % l)