Php Set Variable To Empty Array Typescript Vs Jquery