Checks if window is undefined in System.