How to determine whether a package is expired?

The web service provides static and dynamic package info. One of the two dynamic info constituents is "expiration date, in RFC 822 format; omitted if the torrent has infinite expiration." However, when a package has expired the web service no longer returns the expiration date, rather it omits it (this would imply it has infinite expiration). Since I cannot compare it to the actual date to see if it has expired this leads me to the conclusion that it would be a torrent with infinite expiration, but that is not true because the actual Pando software tells me it's expired. I would imagine that this is a web service problem. I'm interested in this because I have a site where I track Pando packages and I would like to know which packages have expired so that I can remove their listing automatically via my script, but I can't do that because a package with no expiration date is assumed to never expire. Any ideas or is this a problem that has yet to be corrected?

Some time ago we added an

Some time ago we added an "expired" element which can be set to "true" or "false" ... currently only available via XML. We'll add it to the JSON response and the PandoAPI.js library and update the docs when that is done. If a package is not "expired" and has no expiration date, it does not expire.