public function exists($column = null, $value = null)
    {
        if ($column == null && $value == null) {
            return $this->count() > 0;
        }

        return $this->where($column, $value)->count() > 0;
    }
public function exists($column = null, $value = null)
    {
        if ($column == null && $value == null) {
            return $this->count() > 0;
        }

        return $this->where($column, $value)->count() > 0;
    }
public function exists ( $ column = null , $ value = null ) { if ( $ column == null && $ value == null ) { return $ this -> count ( ) > 0 ; } return $ this -> where ( $ column , $ value ) -> count ( ) > 0 ; }
Check if a value already exists in the DB

@param  string $column
@param  mixed  $value
@return bool

@throws QueryBuilderException
Check if a value already exists in the DB