types-exists rest api implementation

I think that this is the preferred way to check if a mapping/type exists or not using the rest api:
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-types-exists.html

I am not sure how this is done in the native api at the moment but i will dig deeper later on.