code: public function checkVersioned()
      {
          $isVersioned = false;
  
          foreach ($this->owner->getExtensionInstances() as $extension) {
              if ($extension instanceof Versioned) {
                  $isVersioned = true;
                  break;
              }
          }
  
          return $isVersioned
              && $this->owner->config()->better_buttons_versioned_enabled
              && count($this->owner->getVersionedStages()) > 1;
      }
docs: Determines if the record is using the {@link Versioned} extension
  @return boolean