Added support for the has_fields document manipulation operator

I didn't see an existing issue for this, but I ran into a situation where this operator came in handy.