What is the `contains` method? Is it a default for all JS objects. Maybe it's a jQuery only method.

Maybe it's better to use `$.isArray(box)` to check if it's an array.