Can you change it to say:

```
if (moment.isMoment(value)) {
```

Other objects might have a `calendar` property.