Idiomized port type check.