Updated integers check in Box's constructor.