code: @Override
      public Object visit(ParseTree tree) {
          if (!asBoolean(tree)) {
              return null;
          }
  
          return super.visit(tree);
      }
docs: Visit tree safely, no NPE occurred when the tree is null.
  
  @param tree an AST node
  @return the visiting result