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: detNlcon.m
    path of file: ./repos/OPTI/Utilities/opti
    
    the code of the file until where you have to start completion: function [nlcon,nlrhs,nle] = detNlcon(nonlcon,x0)
%DETNLCON  Determine OPTI format Nonlinear Constraints

    
function [nlcon,nlrhs,nle] = detNlcon(nonlcon,x0)
%DETNLCON  Determine OPTI format Nonlinear Constraints

%   Copyright (C) 2011 Jonathan Currie (Control Engineering)

%Sort out nonlinear constraints (unfortunately rather inefficient)
if(isempty(nonlcon))
    nlcon = []; nlrhs = []; nle = [];
    return;
end