Change numeric port check to existential check