Matlab Check Empty Array Javascript Append Html