public static bool safeCheckTimeLimit(this SlowTaskDetector task) { if (task == null) { return(true); } return(task.checkWithinTimeLimit()); }