Check AST's structure