delete_element should return false if the key needs to be deleted