if (! RTC.isrunning())
Not applicable to the 3231. It's a flag set on the 1307.
Take a look at the data sheet.