`if len(s) == 0` would seem more natural and since lengths can't be negative, it has the same meaning.