Here, it makes no sense to provide a callback if the request is synchronous.  Better to simply return `null` or `the object` if success.

If we keep this asynchronous, then it is better to add `onsuccess` and `onerror` callbacks.