Issue #1

Using empty() instead of is_null to test date_created