Check if id exists in Combo

i am trying to check if an id exists in a combo i am using this code but it is not working .

var file = 200
var list = $$('Combo1').getPopup().getList();
if (list.exists(file)) {

}else{
	webix.alert({
	title: "User Does Not Exist",
	ok: "OK",
	type: "alert-error",
	text: "User Does Not Exist "
		});
	}

The same works for me

http://webix.com/snippet/8dda3ad9

i can see that, but i can’t get it to work maybe because i am loading it this way ?

var list = $$(‘Combo1’).getPopup().getList();
list.clearAll();
list.load(’./employee_combo.cfm);

ok
i found the problem
the if statement was getting executed before the load finished .
i used

list.load('./employee_combo.cfm',function(text, data, http_request){
if (list.exists(file)) {
 
}else{
    webix.alert({
    title: "User Does Not Exist",
    ok: "OK",
    type: "alert-error",
    text: "User Does Not Exist "
        });
    }
});