Iec normalizer

```php
foreach ($rate_types as $rate_type) {
if (!in_array($rate_type, allowed_rate_types)) {
  throw new Exception
}
```