There is no else right now but there is a stop rule which you can place within the if statement if you don’t want rules to be executed after the if statement. Then you can assume else is after the if.
If you are using toggle visibility that has an animation collapse style. I would suggest using a class toggle (display: none;) if you want instant hidden.