def METHOD_NAME(path: str, sample: str) -> bool:
    if os.path.exists(path):
        with open(path, 'r', encoding='utf-8', errors='ignore') as fd:
            for line in fd:
                if sample in line:
                    return True
    return False