def _intersect(rect1, rect2):
    """ Return True if the two rectangles rect1 and rect2 intersect. """
    x1, y1, w1, h1 = rect1
    x2, y2, w2, h2 = rect2
    return (x1 + w1 > x2 and x2 + w2 > x1) and (y1 + h1 > y2 and y2 + h2 > y1)