Returns true if context contains metadata with given key
bool hasMetadata(String key) => _metadata.containsKey(key);