Remove empty if block that was unused