Ensure document contains type