As far as I know there is no way to check whether the target already has dots on it. Perhaps the original LUA supported that, but the Classic version will not.

Tab target should more or less cycles through the mobs though so I'd think a mapped key key that keeps tabbing and casting dots could be sufficient.