/**
  * Type Exists.
  *
  * Does this type exist?
  *
  * @return bool
  */
 public static function typeExists()
 {
     $instance = new static();
     $params = $instance->getBasicEsParams();
     return $instance->getElasticSearchClient()->indices()->existsType($params);
 }
 /**
  * Delete Mapping
  *
  * @return array
  */
 public static function deleteMapping()
 {
     $instance = new static();
     $params = $instance->getBasicEsParams();
     return $instance->getElasticSearchClient()->indices()->deleteMapping($params);
 }