Add check to not do cronjob unless keys exist