public function has(string $key): bool
    {
        return $this->customTypes && $this->customTypes->has($key) || array_key_exists($key, $this->types);
    }
public function has(string $key): bool
    {
        return $this->customTypes && $this->customTypes->has($key) || array_key_exists($key, $this->types);
    }
public function has ( string $ key ) : bool { return $ this -> customTypes && $ this -> customTypes -> has ( $ key ) || array_key_exists ( $ key , $ this -> types ) ; }
Returns whether a type exists for the given key

@param string $key

@return bool
Returns whether a type exists for the given key