private function isEmbeddedDocument($array) { return is_array($array) && array_values($array) !== $array; }