function hasContext(key) {
	const context_map = get_or_init_context_map('hasContext');
	return context_map.has(key);
}
Checks whether a given `key` has been set in the context of a parent component.
Must be called during component initialisation.

@param {any} key
@returns {boolean}