I am trying to throw an exception error when the code takes a non empty array as an input
if isempty(array) x = a+b+c else throw(DomainError(array, "