How to check to see if videoGrabber loaded properly?

If I set a device ID outside the range, it will throw an error in the log, but it won’t change the status of isInitialized() to false. How can I programmatically check if the camera is setup correctly without just sampling pixels once the program is running?

Thanks!