Fixed unnecessary if statement