Test for remote before adding.

Stops it failing when the remote exists.