Update exception check for set element removal