Implement insertion/deletion error checking