Removes empty entries from a array recursivly