Python Check If Array Of Structures Matlab