Added conditions in can_update? function to check if a program is assigned to a KIT.