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: iswholenum.m
    path of file: ./repos/fieldtrip/external/homer3/private
    
    the code of the file until where you have to start completion: function b = iswholenum(x)
% Reason for this function is that isinteger() looks at the class of the number 
% rather it's actual value. So isinteger(4) will return true but integer(4.0) will 

    
function b = iswholenum(x)
% Reason for this function is that isinteger() looks at the class of the number 
% rather it's actual value. So isinteger(4) will return true but integer(4.0) will 
% be false even though 4.0 = 4. This is a problem. 
b = false;
if ~ismember(class(x), {'double','single','int8','uint8','int16','uint16','int32','uint32'});
    return;
end