11 $exists operator

Added support for the $exists operator as described in issue #11 
The final two lines of each clause are identical, put them outside the conditional.