matlab check if variable exists in struct