Provide has() method to Document