protected function getHeading(array $contents) { return isset($contents['heading']) ? $contents['heading'] : ''; }