Update initialisation check for new PHP-8.3 API
Fix GH-11416: Crash with DatePeriod when uninitialised objects are passed in (PHP 8.2+)
Fix GH-11416: Crash with DatePeriod when uninitialised objects are passed in