fixed big bad "nothing works" bug in hasBoxes()