Fix swap exists checker