def is_defined(s, table):
    """
    Test if a symbol or label is defined.

    :param s: The symbol to look up.
    :param table: A dictionary containing the labels and symbols.
    :return: True if defined, False otherwise.
    """
    try:
        table[s]   # Exploiting possible KeyError
        return True
    except KeyError:
        return False