@param $id

@return bool
421488
public function deletePost( $id ) {

        $userAttributes = $this->service->getUserAttributes();

        $response = $this->service->api( 'wall.delete', 'GET', [
            'owner_id' => $userAttributes['id'],
            'post_id'  => $id
        ] );

        return $response['response'] == 1;
    }
1165740
public function delete($id)
    {
        $model = $this->model->where('id', $id)->first();
        if (!$model) {
            return false;
        }
        return $model->delete();
    }
542576
public function has($id)
    {
        return isset($this->watched[$id]) && 0 !== $this->watched[$id]->count();
    }
735218
public function has($id)
    {
        if ($this->isSilverStripeServiceRequest($id)) {
            return (bool) $this->getSilverStripeService($id);
        } else {
            return parent::has($id);
        }
    }
121701
public function deleteRow (int $id) : bool
	{
		$this->id = $id;
		return $this->delete() ? TRUE : FALSE;
	}
661901
public function delete($id)
	{
		try {
			$this->getIndex()->deleteObject($id);
		} catch (\Exception $e) {
			return false;
		}
		
		return true;
	}
321872
public function has($id)
    {
        try {
            $existing = $this->get($id);
        } catch (\OutOfBoundsException $e) {
            return false;
        }
        return Util::typeOf($existing);
    }
1124450
static public function exists($id)
    {
        try {
            $class = static::$modelClass;
            $class::findOrFail(static::isUuid() ? uuid('bytes', $id) : $id);
            return true;
        } catch(\Exception $e) {
            return false;
        }
    }
1291838
public function fetch($id)
    {
        if (empty($id)) {
            return false;
        }

        if (array_key_exists($id, self::$staticCache)) {
            return self::$staticCache[$id];
        }

        if (!$this->cache->contains($id)) {
            return false;
        }

        return $this->cache->fetch($id);
    }
399789
public function isModified($id)
    {
        return isset($this->modified[$id]) and !empty($this->modified[$id]);
    }
415930
public function delete($id = null): bool
	{
		$instance = $this->read($id);

		return $instance->delete();
	}
1259568
public function has($id)
    {
        /** @var ContainerInterface $item */
        foreach ($this->list as $item) {
            if ($item->has($id)) {
                return true;
            }
        }

        return false;
    }
909390
public function exist($id)
    {
        is_string($id) && $id = $this->getSlugFromName($id);

        return isset($this->items[$id]);
    }
706838
public static function find_by_id($id)
	{
		$row = self::oneOrNew($id);

		if (!$row->get('id'))
		{
			return false;
		}

		return $row;
	}
1059665
public function deleteById($id = '')
    {
        $node = $this->mainNode->getById($id);

        if (empty($node)) {
            true;
        }

        return $node->delete();
    }
156422
public function has($id)
    {
        if (is_string($id)) {
            return $this->getResolver()->hasService(
                $this->idWithoutScope($id)
            );
        }
        return false;
    }
977553
private function _fetch($id)
    {
        if ($this->_id === $id) {
            return true;
        }

        $ret = xcache_get($id);
        if (false === $ret) {
            $this->_id = null;

            return false;
        }

        list($this->_lm, $this->_data) = explode('|', $ret, 2);
        $this->_id = $id;

        return true;
    }