Removes unnecesary if condition