instead of using a `try`/`catch` for flow control, we could just check the property no?

```javascript
// alternatively (more defensive) 
if (value && typeof value.toISOString === "function") {
  return value.toISOString();
}
```