elgg_in_context(string $context)
Check if this context exists anywhere in the stack.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_get_current_url()
Returns the current page's complete URL.