isInLogicalExpression