Sanitize the logic in a loop in VIPInitCheck