original_string: public function isUnread($userId)
      {
          try {
              $participant = $this->getParticipantFromUser($userId);
              if ($this->updated_at > $participant->last_read) {
                  return true;
              }
          } catch (ModelNotFoundException $e) {
              // do nothing
          }
  
          return false;
      }
code: public function isUnread($userId)
      {
          try {
              $participant = $this->getParticipantFromUser($userId);
              if ($this->updated_at > $participant->last_read) {
                  return true;
              }
          } catch (ModelNotFoundException $e) {
              // do nothing
          }
  
          return false;
      }
code_tokens: public function isUnread ( $ userId ) { try { $ participant = $ this -> getParticipantFromUser ( $ userId ) ; if ( $ this -> updated_at > $ participant -> last_read ) { return true ; } } catch ( ModelNotFoundException $ e ) { // do nothing } return false ; }
docstring: See if the current thread is unread by the user
  
  @param integer $userId
  @return bool
docstring_tokens: See if the current thread is unread by the user