If user is a common friend, then it should be in both lists, so both is_friend_a and is_friend_b should be True.
user
is_friend_a
is_friend_b
True
Make sure to pick is_friend_a, followed by is_friend_b.