Null check is not necessary here (range instanceof String will return false if range is null).