And $ts = null, too.
It was too easy. It breaks now parsing of RFC 2822 and RFC 822 dates. Good thing we had tests for them.
PHP fun of having ('Mon, 15 Jan 2001 12:34:56 GMT' == 0) === true.
Replace the condition with an empty() ?
Fixed in r79253