Php Check Array Size Javascript Compiler Vs Code