I’m not particularly comfortable with this solution: I can see that it would work, but it makes the `last_part` variable misleading. I think a cleaner approach would be to have a `parts` array, push one or more URL parts into it and check each one of them for slugginess.