original_string: public function hasUniqueSlug()
      {
          $hash = $this->slugWorkingRecord->{$this->slugDbField} ?: $this->encrypt();
          $list = $this->slugWorkingRecord->get()->filter($this->slugDbField, $hash);
  
          if($this->slugWorkingRecord->ID) {
              $list = $list->exclude('ID', $this->slugWorkingRecord->ID);
          }
          else {
              $list = $list->exclude('ID', 0);
          }
  
          return !($list->exists());
      }
code: public function hasUniqueSlug()
      {
          $hash = $this->slugWorkingRecord->{$this->slugDbField} ?: $this->encrypt();
          $list = $this->slugWorkingRecord->get()->filter($this->slugDbField, $hash);
  
          if($this->slugWorkingRecord->ID) {
              $list = $list->exclude('ID', $this->slugWorkingRecord->ID);
          }
          else {
              $list = $list->exclude('ID', 0);
          }
  
          return !($list->exists());
      }
code_tokens: public function hasUniqueSlug ( ) { $ hash = $ this -> slugWorkingRecord -> { $ this -> slugDbField } ? : $ this -> encrypt ( ) ; $ list = $ this -> slugWorkingRecord -> get ( ) -> filter ( $ this -> slugDbField , $ hash ) ; if ( $ this -> slugWorkingRecord -> ID ) { $ list = $ list -> exclude ( 'ID' , $ this -> slugWorkingRecord -> ID ) ; } else { $ list = $ list -> exclude ( 'ID' , 0 ) ; } return ! ( $ list -> exists ( ) ) ; }
docstring: Check if the slug for this object is unique
  
  @return boolean
docstring_tokens: Check if the slug for this object is unique