While we're changing this function, can we avoid this `and not netrc_path` test by `break`ing from this loop instead? Saves us some iterations, probably.