private function removeEndBrackets($definition) { if (substr($definition, -2) === '()') { return substr($definition, 0, -2); } return $definition; }