pcfg: test for existence of unary rules