def check_preconditions(key, value):
    """
    Check if the filter applies to the current element in the syntax tree.

    :param key: The type of pandoc object.
    :type key: str
    :param value: The contents of the object.
    :type value: list | str
    :return: ``True`` if the filter applices to the current element, ``False`` otherwise.
    :rtype: bool
    """
    return key == "CodeBlock" and "table" in value[0][1]