Write some data to a RAM location in the RTC(I haven't checked if this RTC has RAM). If you find the same data when the bit says battery good, the battery is good and present. But, if the data has changed, it means that the battery was not present.