Python Check Array Is Not Empty Matlab Simulink