null check for crons before scheduling, clear script