HDNode: move isPrivate logic