Remove an unneccessary if