function isQuery({ name, type }) {
  if (name !== "iq") return false;
  if (type === "error" || type === "result") return false;
  return true;
}
References
https://xmpp.org/rfcs/rfc6120.html#stanzas-semantics-iq
https://xmpp.org/rfcs/rfc6120.html#stanzas-error