fix for delete_field check

WIth old version of code, field nulled in all cases. Here little fix for this - checking value, not the exisiting