def METHOD_NAME(formula: str, adduct: str):
    if adduct and adduct not in ('[M]+', '[M]-'):
        formula += adduct
    try:
        cpyMSpec.isotopePattern(formula)
        return True
    except Exception:
        return False