Refactoring for better readability
Protecting of setting non numeric values to collections