isinstance can take list for second arg