added method to check if badge can be deleted