Understanding the logic with 2 returns?