protected function isVisualFunctionCollapsed() { return (bool) $this->find('xpath', $this->getElement('expandVisualFunction')->getXpath()); }