Right before the insert, do something like this:

Code:
if ($customer_notified === '') { 
   $customer_notified = -1;
}