How to tell if I'm in MacVim in .vimrc

I just found one way to do it:

if has("gui_macvim")
    " set macvim specific stuff
endif