public function embed($parent, string $field, &$entity) : bool
{
// In order to update the document if it exists inside the $parent
$this->unembed($parent, $field, $entity);
$fieldValue = $parent->{$field};
$fieldValue[] = $entity;
$parent->{$field} = array_values($fieldValue);
return true;
}