could you specify what checkEmpty does ?