Eliminate empty or redundant conditions