`@throws \InvalidArgumentException When the given $document param is not an object`