Changed ElementHelper.append to an upsert style method.