Added hasConstructor with arity.