Hmm indeed, changed it to the isOpened() bool specified for that purpose.