exists: adding exists check for globals