fixed empty expressions in $and/$or arrays