Use tuple rather than or for isinstance check

Both are valid, but slightly cleaner to do it this way