Nonlinear Conditions for Ultradifferentiability