`address.Path.Last() == '/'`? But I wouldn't bother, leave it this way.