Php Check Array Size Js Compilers