Why not have 2 macros?

Mark/Focus
Code:
/run if GetRaidTargetIndex("target")~=1 then SetRaidTarget("target",1)end
/focus
Polymorph
Code:
/use [@focus,harm,nodead][]Polymorph
Polymorph macro will cast on focus if alive/enemy otherwise it will cast on your target.