protected function verify() { if (is_array($this->yaml)) { $this->yaml = implode("\n", $this->yaml); } // This will throw a ParseException If the YAML is not valid $this->parser->parse($this->yaml, true, true); return true; }