public static function jrSoftCapReached($term) { $softCap = LotteryProcess::getJrSoftCap(); $assigned = LotteryProcess::countLotteryAssignedByClassGender($term, CLASS_JUNIOR); if ($assigned >= $softCap) { return true; } return false; }