``.size()`` is deprecated. you sould be using ``chosenContainer.length``