Php Set Variable To Empty Array Javascript Append Method In Python