Check if a given key exists in the context, supporting nested keys using dot notation (e.g., "person.name.first").
TODO: Support arrays in the path (e.g., "person.children.name").
Parameters
context: any
the context object to check for the key.
key: string
the key to check for existence, which can be a simple key or a nested key using dot notation.
Returns boolean
true if the key exists in the context, false otherwise.
Check if a given key exists in the context, supporting nested keys using dot notation (e.g., "person.name.first"). TODO: Support arrays in the path (e.g., "person.children.name").