Created implementation for ProtocolMessage#hasValidType