Php Cannot Use Empty Array Elements Javascript W3schools