src/Titon/Db/Repository.php
public function exists($id) {
        return (bool) $this->select()->where($this->getPrimaryKey(), $id)->count();
    }
public function exists($id) {
        return (bool) $this->select()->where($this->getPrimaryKey(), $id)->count();
    }
public function exists ( $ id ) { return ( bool ) $ this -> select ( ) -> where ( $ this -> getPrimaryKey ( ) , $ id ) -> count ( ) ; }
Check if a record with an ID exists.

@param int $id
@return bool
Check if a record with an ID exists .