cofports: changed method has_port() to has_port() const