Eliminate redundant conditional