checking if a variable exists, with "in" operator

checking if a variable exists in window, with "in" operator