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: checkmultiBEST.m
    path of file: ./repos/erplab/functions
    
    the code of the file until where you have to start completion: %% CHECK BEST WITH MULTIPLE FILES
% Once BEST structure is cre
    
function checking = checkmultiBEST(BEST)

    %multiple files
    try
        %take the first file's properties and check against each subseqent 
        bins_in_data1 = numel(BEST(1).binwise_data);
        
        if bins_in_data1 < 2 
            %needs to be at least 2 bins 
            msgText = 'Must have at least two classes for decoding!';
            title = 'ERPLAB: Invalid number of classes';
            errorfound(msgText,title);
            checking = 0; 
            return
        end