How can you stop algebra?

Is there a way to set algebra? For example, if I type $ p cup varnothing $ I want it to come back $ p $, The issue is however

Union :: normal: non-atomic expression expected at position 1 in s [Union][EmptySet],

$ p cup varnothing $