@param mixed $id

@return bool Returns whether the exceptionDisabled flag was set
17629
public function documentNotFound(object $proxy, $id) : bool
    {
        $eventArgs = new DocumentNotFoundEventArgs($proxy, $this->dm, $id);
        $this->evm->dispatchEvent(Events::documentNotFound, $eventArgs);

        return $eventArgs->isExceptionDisabled();
    }
344910
public function setDatatableId($id)
    {
        if (!array_key_exists($id, self::$_instances))
        {
            self::$_instances[$id] = $this;
        }
        else
        {
            throw new \Exception('Identifer already exists');
        }
        return $this;
    }
1224810
public function deleteById($id)
    {
        try {
            $obj = $this->getById($id);
            $this->delete($obj);
            return true;
        } catch (\Exception $e) {
            throw $e;
        }
    }
1286073
public function deleteById($id)
    {
        $read = NotificationsStackRead::where([
                    'stack_id' => $id,
                    'user_id'  => user()->id
                ])->first();
        if (!is_null($read)) {
            return $read->delete();
        }
        return false;
    }
616107
public static function destroy($id)
    {
        if (self::confirmIdExists($id)) {
            return self::doDelete($id); 
        } else { 
            throw new Exception('Now rows found with ID '.$id.' in the database, it may have been already deleted'); 
        }
    }
885333
public function isValidId(?string $id): bool
    {
        if ($id == '') {
            return false;
        }

        if ($this->saveHandler != null && method_exists($this->saveHandler, 'isValidId')) {
            return $this->saveHandler->isValidId($id);
        }

        static $idPattern;
        if ($idPattern == null) {
            if ($this->options['hash']) {
                $idPattern = '~^[A-F0-9]{'. $this->options['hashLength'] .'}$~';
            } else {
                // @see http://php.net/manual/en/session.configuration.php#ini.session.sid-length
                // @see http://php.net/manual/en/session.configuration.php#ini.session.sid-bits-per-character
                // @see https://github.com/php/php-src/blob/PHP-7.1/UPGRADING#L114
                $idLength = ini_get('session.sid_length') ?: self::SID_LENGTH;
                $idBitsPerCharacter = ini_get('session.sid_bits_per_character');
                if ($idBitsPerCharacter == '') { // never happens, but obsession..
                    ini_set('session.sid_length', (string) self::SID_LENGTH);
                    ini_set('session.sid_bits_per_character', (string) ($idBitsPerCharacter = self::SID_BITSPERCHARACTER));
                }

                $idCharacters = '';
                switch ((int) $idBitsPerCharacter) {
                    case 4: $idCharacters = '0-9a-f'; break;
                    case 5: $idCharacters = '0-9a-v'; break;
                    case 6: $idCharacters = '0-9a-zA-Z-,'; break;
                }

                $idPattern = '~^['. $idCharacters .']{'. $idLength .'}$~';
            }
        }

        return (bool) preg_match($idPattern, $id);
    }
41751
public function has($id): bool
    {
        return isset($this->alias[$id]) ||
               isset($this->bindings[$id]) ||
               isset($this->objects[$id]);
    }
895024
public function isLocked($id)
    {
        $record = $this->model->findOrFail($id);

        if ($record->locked_by > 0) return true;

        return false;
    }
1358537
public function has($id)
    {
        $res = isset($this->_classes[$id]);

        if ($res == false && isset($this->_lazy_classes[$id])) {
            if (is_callable($this->_lazy_classes[$id])) {
                $this->_classes[$id] = $this->_lazy_classes[$id]($this);
            } else {
                $this->_classes[$id] = $this->_lazy_classes[$id];
            }

            $res = true;
        }

        if ($res == false && $this->isSystemClass($id)) {
            $res = $this->_loadSystemClass($id);
        }

        return $res;
    }
752113
public function has($id)
    {
        if (!is_string($id)) {
            throw new ContainerException('$id must be a string');
        }

        if (array_key_exists($id, $this->definitions)) {
            return true;
        }

        return false;
    }
965699
protected function assertValidId($id)
    {
        if (defined('PHP_WINDOWS_VERSION_BUILD')) {
            $bad = preg_match('/[\x00-\x1F\x7F]\<\>\:\"\|\?\*]/', $id);
        } else {
            $bad = preg_match('/\x00/', $id);
        }
        if ($bad) {
            throw new RawFileCacheException('Invalid character found in cache ID', RawFileCacheException::INVALID_CHARACTER);
        }
    }
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;
        }
    }
309597
public function has($id)
    {
        foreach ($this->containers as $container) {
            if ($container->has($id)) {
                return true;
            }
        }

        return false;
    }
19974
protected function IblockDelete($id)
    {
        $return = [];
        $iblock = $this->iblockLocate($id);
        if (CIBlock::Delete($iblock['ID'])) {
            $return[] = "Iblock {$iblock['CODE']}({$iblock['ID']}) deleted";
        } else {
            throw new Exception("Can't delete {$iblock['CODE']}({$iblock['ID']}) iblock");
        }

        return $return;
    }
1356521
public function __isset($id) {
		if ($this->has($id)) {
			return true;
		}
		
		if ($this->hasLocator()) {
			$locator = $this->getLocator();
			
			if ($locator->has($id)) {
				return true;
			}
		}
		
		return false;
	}
732870
public function delete($id)
    {
        $supported = $this->isSupported('delete');

        return (true === $supported) ? $this->makeRequest($this->endpoint.'/'.$id.'/delete', array(), 'DELETE') : $supported;
    }
786458
public function actionDelete($id)
    {
        try{
            return $this->findModel($id)->delete();
        }catch(Exception $e){
            throw new Exception($e);
        }

    }