if ($this->db->table_exists('table_name')) { // some code... }
if($this->db->table_exists('my_tbl') == FALSE) { call_function(); }