original_string: protected function resourceExists($resource)
      {
          /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */
          $rs = ServiceManager::handleRequest($this->service->getName(), Verbs::GET, $resource);
          if ($rs->getStatusCode() === HttpStatusCodes::HTTP_NOT_FOUND) {
              return false;
          }
  
          return true;
      }
code: protected function resourceExists($resource)
      {
          /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */
          $rs = ServiceManager::handleRequest($this->service->getName(), Verbs::GET, $resource);
          if ($rs->getStatusCode() === HttpStatusCodes::HTTP_NOT_FOUND) {
              return false;
          }
  
          return true;
      }
code_tokens: protected function resourceExists ( $ resource ) { /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */ $ rs = ServiceManager :: handleRequest ( $ this -> service -> getName ( ) , Verbs :: GET , $ resource ) ; if ( $ rs -> getStatusCode ( ) === HttpStatusCodes :: HTTP_NOT_FOUND ) { return false ; } return true ; }
docstring: Checks to see if target resource already exists or not
  
  @param $resource
  
  @return bool
docstring_tokens: Checks to see if target resource already exists or not