Defensive programming I guess. I don't have a strong opinion on this, so I could change it.