unity check if current scene is being unloaded

Code Example - unity check if current scene is being unloaded

                
                        //If the scene is being unloaded, this will return false
SceneManager.GetActiveScene().isLoaded