"swap equals comparison to avoid additional null check"