private function isStructDefined($type) { return in_array(self::typeSignature($type), $this->definedStructs); }