not very elegant to set it first then clear it here ?

how about:
```javascript
if (isContact) {
  params.section = section;
} else {
  // existing code
  params.section = ''; // (maybe not necessary ?)
}
```