I don't believe its necessary to add the `[0]`. `isinstance` will accept a tuple as its second argument.