public function exist($filed = null) {
        if ($filed) {
            $this->field($filed);
        }

        return $this->total($filed) > 0;
    }
public function exist($filed = null) {
        if ($filed) {
            $this->field($filed);
        }

        return $this->total($filed) > 0;
    }
public function exist ( $ filed = null ) { if ( $ filed ) { $ this -> field ( $ filed ) ; } return $ this -> total ( $ filed ) > 0 ; }
check if there is any row in database suits the condition.

@param string $filed

@return boolean
check if there is any row in database suits the condition .