I think this one was OK as it was (if I understand the code correctly). It len(n) > 1 that indicates a bug in the code.