poor mans looping in array_do and array_do_r
adding delete_key_with_value