pub fn has_context<T>() -> Option<T>where T: 'static + Clone,
Check if the current scope has a context