cron: remove use of deprecated has_key() call