public function isElementInTable(string $name): bool
    {
        return $this->context->getElementByText($name, $this->fields['listElement']) !== null;
    }
public function isElementInTable(string $name): bool
    {
        return $this->context->getElementByText($name, $this->fields['listElement']) !== null;
    }
public function isElementInTable ( string $ name ) : bool { return $ this -> context -> getElementByText ( $ name , $ this -> fields [ 'listElement' ] ) !== null ; }
Check if list contains list element with given name.

@param string $name

@return bool
Check if list contains list element with given name .