implemented exists mode that makes processing of the select statment in 'EXIST' block fast.