Php Set Empty Array Javascript Length Of Object