how does one go about checking what an object's positon is (numerically) in an array?