Matlab Check Empty Array Javascript Methods And Functions