We coud just write:

```javascript
		try {
			return config.json ? JSON.parse(s) : s;
		} catch(er) {}
```

It implicitely returns undefined.