Python Check Array Size Javascript Map Example