// Walk through all points
foreach ($pointsBack as $userid => $PB) {
// Add points only when we have points left to add and a valid user id
// Walk through all points
foreach ($pointsBack as $userid => $PB) {
// Add points only when we have points left to add and a valid user id