In Chrome console, this is what my array looks like when it has no data:
Object {Series1: Array[0]}
When it has data, it looks like this:
Object {Series1: Array[10]}
I tried this out but didn't have any luck:
function testfunction() {
if (array[Series1] !== 'undefined' && array[Series1] !== null) {
alert("There is data");
} else {
alert("No data here");
}
};
$(document).ready(testfunction);