Add the childExists method.
Always rewind the grammar while getting the AST.