def has_bad_strings(text):
    """Check if the text has any of the bad strings"""

    bad_strings = ['ab', 'cd', 'pq', 'xy']

    # Return True if any of the bad strings are in text,
    # otherwise return False
    if any(string in text for string in bad_strings):
        return True

    return False