async isOpen() {
        if (await $(this.rootElement).isDisplayed()) {
            return (
                (await $(this.rootElement)
                    .$('section[role="dialog"]')
                    .isDisplayed()) &&
                (await $(this.rootElement)
                    .$('[id="modal-close-button"]')
                    .isDisplayed())
            );
        }
        return false;
    }
Returns true when the modal is open, false otherwise.
@method
@returns {bool}