I'd remove this check, otherwise tuples of other lengths will be silently ignored. Better for an exception to be thrown.