Typescript If Not Empty Matlab Documentation Plotly R