As there is no return value, it would make more sense to start the conditional as;

```javascript
if (location.type === "location" && location.cookie && location.expires) {
   //.. reset of logic
}

The function would naturally return void if the condition was not evaluated as true