Unnecessary if statement