some cs issues here, should be:

````diff
         {
-            $sectionID = eZSection::fetchByIdentifier( $sectionIdentifier );
+            $section = eZSection::fetchByIdentifier( $sectionIdentifier );
+            $sectionID = null;
+            if ( $section instanceof eZSection )
+            {
+                $sectionID = $section->attribute('id');
+            }
````