you should check if the ``type`` value from a constructor array