Add empty check for timer.