def vanity? number
      country, _, national = partial_split number
      country.vanity? national
    end
def vanity? number
      country, _, national = partial_split number
      country.vanity? national
    end
Is the given number a vanity number?