refactor isUpdateAllLines method