A function that returns the value of the reference, or null if the reference has become invalid, when later needed.