redundant if statement