isfield
Check if an object has a field with the given name.
(u)=isfield(a, fieldname)
Inputs
a Any object or structure array.
fieldname The name of the field whose existence is to be checked.
Outputs
u true if the input has a field with the given name, and false otherwise.