Removes an unnecessary condition check.