Javascript Map Over Empty Array Php Functions W3schools