I assume that in practice, this will always be 0 or 1. But if for some reason you got > 1 map, shouldn't you delete them all (instead of deleting none)? Why not just iterate through the maps found and delete them?