added instance check for is_date()