Moved check for Boolean AST.