code: private function checkEmpty($action)
      {
          if ($this->hasVariants() && $this->currentModel !== null) {
              $this->disablePA = false;
          } elseif ($action == 'create') {
              $this->disablePA = false;
              $this->disablePI = false;
          }
      }
docs: Check the PA and PI without a contained model.
  
  @param string $action The action to be checked.
  
  @return void