Function Reference
— Built-in Function: isfield (expr, name)

Return true if the expression expr is a structure and it includes an element named name. The first argument must be a structure and the second must be a string.