Refactoring book ---- simplify condition