added function removeArrayNull