private function isInitialized(KSchedularTaskConfig $taskConfig) { $isJobHandlerWorker = is_subclass_of($taskConfig->type, 'KJobHandlerWorker'); // If it isn't a job handling worker - there is no need to check for filter if (!$isJobHandlerWorker) { return true; } return KScheduleHelperManager::checkForFilter($taskConfig->name); }