Remove redundant if()'s.