/** * @param $index * @param $type * @return mixed * @see http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-types-exists.html */ public function typeExists($index, $type) { return $this->db->head([$index, $type]); }