Removed unused if statement