It's faster using setdefault.