If you look at this specific part below. I am checking typeof b for ‘undefined’ yet for some reason after I check it and it is undefined, if I check it again in the inner if statement, it is suddenly an object in some cases. Why would it randomly change from undefined to object?