Added method to check if a cronjob is active