Sony sanitize bootstrap data

Does an escape/unescape around the bootstrapping process to prevent XSS.
I'm just curious: Do these two underscore functions provide some kind of safety or other benefit over using something like the following?

```
seen = seen || [];
if(modelOrCollection in seen) {
  return modelOrCollection
}
```