If statement in Cypress

How can i write correctly this code, in such a way that it is a valid if syntax, and if it is not respected, should I have someone else with it?

Basically I want to search for a text in a popup window. If it does not exist, enter the code in else statement.

cy.get(".ibxudA").find('.WildnessText-kRKTej').should('have.text',"Wildness")