update IsExpired function comment