How to check if scene exists in SceneManager?

I have this code:

if (Application.CanStreamedLevelBeLoaded(name))
            SceneManager.LoadScene(name);
        else
            StartCoroutine(LoadBundle());

and it works correctly in the editor, but in WebPlayer, it doesn’t work.
Is there another method to check if scene exists in SceneManager?

web player is deprecated, it removed in latest version of unity.
you may use WebGL instead web player, maybe it solve your problem

In fact, it’s just this simple function:
SceneManager.GetSceneByName(myLevelName).IsValid()

for example:

  if (!SceneManager.GetSceneByName(myLevelName).IsValid())
        {
            print("NOSCENE");
            return;
        }