Possible micro performance optomization here:
```
if (typeof person['name'] !== 'undefined' || typeof person['age'] !== 'undefined' ) return false;
```

http://andrew.hedges.name/experiments/in/