original_string: public function resourceExists($resource)
      {
          $resources = $this->getAvailableResources();
          foreach ($resources as $res) {
              if ($res->slug == $resource) {
                  return true;
              }
          }
          return false;
      }
code: public function resourceExists($resource)
      {
          $resources = $this->getAvailableResources();
          foreach ($resources as $res) {
              if ($res->slug == $resource) {
                  return true;
              }
          }
          return false;
      }
code_tokens: public function resourceExists ( $ resource ) { $ resources = $ this -> getAvailableResources ( ) ; foreach ( $ resources as $ res ) { if ( $ res -> slug == $ resource ) { return true ; } } return false ; }
docstring: Checks if the given resource exists in Transifex project
  
  @param string $resource
  @return bool
docstring_tokens: Checks if the given resource exists in Transifex project