Refined the logic for determining if the second defendant is present