Added a haskey() method to ASTObject