Php Remove Empty Value In Array Js Mdn For Loop