<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def bbox_vert_aligned_right(box1, box2):
 """ Returns true if the right boundary of both boxes is within 2 pts """

    if not (box1 and box2):
        return False
    return abs(box1.right - box2.right) <= 2