Add isExpired method