Verifique se a matriz está vazia ou nula

Gostaria de saber como verificar se uma matriz está vazia ou nula no jQuery. Eu tenteiarray.length === 0 mas não funcionou. Também não gerou nenhum erro.

Este é o código:

var album_text = new Array();

$("input[name='album_text[]']").each(function(){
  if( $(this).val() &&  $(this).val() != '') {
    album_text.push($(this).val());
  }
});
if (album_text.length === 0) {
  $('#error_message').html("Error");
}

else {
  // send data
}