Add isExpired method
Merge pull request #44 from alexanderedge/master

implement expiry method