Remove redundant if statement