fix call to isStartingURL()

Previously, isStartingURL(true) was called on every iteration ($i evaluates as true for all but the first loop, where $url would equal $starting_url)

Fixed to only call on the first loop ($i ==0) or when $url == $starting_url