`editor.doesElementContainSelection`

You're right. Here it is, below.