def check_susbstrings(link, substrings):
    """
    Checks if link contains one of the substrings.
    """
    is_valid = False
    for sub in substrings:
        if sub in link:
            is_valid = True
            break
    return is_valid