Php Check Array Size Javascript Compiler Offline