Contao\Database\Result::__isset PHP Method

__isset() public method

Check whether a field exists
public __isset ( mixed $strKey ) : boolean
$strKey mixed The field name
return boolean True if the field exists
    public function __isset($strKey)
    {
        if (empty($this->arrCache)) {
            $this->next();
        }
        return isset($this->arrCache[$strKey]);
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function __isset($strKey)
 {
     return $this->result->__isset($strKey);
 }