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;
    }
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;
    }
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 ; }
Checks to see if target resource already exists or not

@param $resource

@return bool
Checks to see if target resource already exists or not