this looks strange. If you want to get key that is equal parameter, then it is easier to do
```
if @params[s][parameter] && @params[s][parameter].has_key?("type")
```