100) { return false; } $percent = $total > 0 ? $remaining / $total * 100 : 0; return $percent < $threshold; } }