public function finalize()
    {
        $this->query = array_filter($this->query, function ($value) {
            return !empty($value) || is_bool($value) || is_numeric($value);
        });

        return $this;
    }
public function finalize()
    {
        $this->query = array_filter($this->query, function ($value) {
            return !empty($value) || is_bool($value) || is_numeric($value);
        });

        return $this;
    }
public function finalize ( ) { $ this -> query = array_filter ( $ this -> query , function ( $ value ) { return ! empty ( $ value ) || is_bool ( $ value ) || is_numeric ( $ value ) ; } ) ; return $ this ; }
Perform any final clean up.
Remove any empty values to avoid errors.

@return $this
Perform any final clean up . Remove any empty values to avoid errors .