Added dmt_has() function