Php Class Variable Array Javascript Length Of An Array Python