Remove coercion from port check