How to check for parenthesis error if there is adjacent AND and OR in the boolean search query. If error, return true, else return
AND
OR
true