Have you supplied power to the DS1307? If so, it isRunning(). There is no need for a function to tell you that.