fixed analyser complaint that urls could be nil (it has a point...)