public function __construct() { if (extension_loaded('yaml')) { $this->usePhpYamlExtension = true; } }