Simplify condition