The boot process..

What is libsb.hasBooted and how is it different from the local isInited variable? Do you mean connection status?
If so, I suggest calling it libsb.connected. You may also add a libsb.initialized and use that in place of isInited.