Ah well, after some pondering on the findings, I resorted to the following way:
Always set context before loading QML, even if it's just a setContextProperty("juice", nullptr). This is just like we always initialize class fields before usage.
Then the simplest check can be used in QML:
@
if ( !juice ) {
@