Favor isinstance over expr.func