public function exists($fields)
    {
        $fields = is_array($fields) ? $fields : [$fields];

        foreach ($fields as $field) {
            $query = new ExistsQuery($field);

            $this->append($query);
        }

        return $this;
    }
public function exists($fields)
    {
        $fields = is_array($fields) ? $fields : [$fields];

        foreach ($fields as $field) {
            $query = new ExistsQuery($field);

            $this->append($query);
        }

        return $this;
    }
public function exists ( $ fields ) { $ fields = is_array ( $ fields ) ? $ fields : [ $ fields ] ; foreach ( $ fields as $ field ) { $ query = new ExistsQuery ( $ field ) ; $ this -> append ( $ query ) ; } return $ this ; }
Add an exists query.

@param string|array $fields

@return $this
Add an exists query .