You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: milpalreadydone.m
    path of file: ./repos/YALMIP/extras
    
    the code of the file until where you have to start completion: function done = milpalreadydone(i)
global ALREADY_MODELLED REMOVE_THESE_IN_THE_END

    
function done = milpalreadydone(i)
global ALREADY_MODELLED REMOVE_THESE_IN_THE_END
done = 0;
if length(ALREADY_MODELLED) >= i
    if ~isempty(ALREADY_MODELLED{i})
        if isequal(ALREADY_MODELLED{i}.method,'milp')
            done = 1;
        end