from re import match


def introspect_file(file_path, re_term):
    """
    Takes a (str) file_path and (str) re_term in regex format
    Will introspect file_path for the existance of re_term
    and return True if found, False if not found
    """
    try:
        ifile = open(file_path, "r")
    except:
        return False
    for line in ifile:
        if match(re_term, line):
            return True
    return False