Got it. So I should change

```
if 'wmsLayers' in l
```

to

```
if `wmsUrl` in l and l[`wmsUrl`] != self.request.route_url('mapserverproxy'):
```

Right?