added is_exist method.