private function isBSONModel($value) { return $value instanceof BSONDocument || $value instanceof BSONArray; }