Returns true if a value of extension is present.
true
extension
bool hasExtension(Extension extension) => _fieldSet._extensions?._getFieldOrNull(extension) != null;