Matlab Check Empty Array Javascript Function Parameters