Detecting instance ints outside scope