check for existence of timer before calling its functionc