Fixing issue where empty sections showed our {@ section @} syntax
Replacing static:: with self:: for PHP 5.2 compatibility