def collide(l1, l2):
    """
    Detect whether l1 and l2 have common elements.
    :param list l1: List 1.
    :param list l2: List 2.
    :rtype: bool
    """
    return len(set(l1).intersection(l2)) > 0