Python Check Array Size Javascript Editor