Before that you must verify structure validator was valid! With something like that: 
```
raise 'invalid rule' unless rules.include?(rule)
```