We shouldn't be switching based on the value of `value`. Instead, we should switch based on `arguments.length`:

```javascript
exports.data = function(key, value) {
  if (arguments.length === 1) {
    // get...
  } else {
    // set...
  }
};
```