Is it possible to know from Android if FlutterJNI is attached?

I want to know that before sending method message (Android part to Flutter part) from foreground service, and if not attached, save the message on a queue that will we resolved when FlutterJNI would be attached.