a = new Array();
if (a.length == 0) {
// array vuoto
}