Changed the field_is_empty function to test the fid is set to something other than 0.