Added checkIsExpired