yii\mongodb\file\Cursor::__isset PHP Method

__isset() public method

PHP magic method, which is invoked on attempt of checking if a property is set.
public __isset ( string $name ) : boolean
$name string field name.
return boolean whether field exists or not.
    public function __isset($name)
    {
        $cursor = $this->getInnerIterator();
        return isset($cursor->{$name});
    }