only add cron jobs if the var is defined