what about

```javascript
return { isValid: !!result, message: message };
```