running interval only if callback isset