I tried different locations where this function could have gone. This is probably the best of all with minimum code duplication.

This function simplifies the checking process without the need for success and failure callbacks every time it is invoked.

Sync asks for the callbacks and performs a plain GET request. I figured it would be wise to not modify the core sync call.

Your thoughts?