refactor: make checks inline
refactor: make checks inline

protocolbuffers/protobuf-javascript,protocolbuffers/protobuf-javascript,protocolbuffers/protobuf-javascript,protocolbuffers/protobuf-javascript