The `$parsed` variable should be renamed to indicate what it contains. I guess `$url_components` is most appropriate name.