Delete null or empty element in array