simplifies the logic on the has cron func