Is there any way to apply the same condition to a number of fields?