public function exists()
    {
        $query = $this->db->query('SELECT * FROM ' . $this->table . ' WHERE name = ?', $this->name);

        return $query->rowCount() > 0;
    }
public function exists()
    {
        $query = $this->db->query('SELECT * FROM ' . $this->table . ' WHERE name = ?', $this->name);

        return $query->rowCount() > 0;
    }
public function exists ( ) { $ query = $ this -> db -> query ( 'SELECT * FROM ' . $ this -> table . ' WHERE name = ?' , $ this -> name ) ; return $ query -> rowCount ( ) > 0 ; }
Returns true if the sequence exist.

@return bool
Returns true if the sequence exist .