Check for existing node before doing an insert