If you remove the card = "null" attribute, you can change this to:

  var isSpaceEmpty = function(row, column) {
    return !$('.board ul:nth-child('+row+') .board-card:nth-child('+column+')').attr('card');
  };