Remove superfluous code from is.foo() statements