fatal error if a (un)hide page element

Hi,

I get a fatal error if I (un)hide a page element because the test for existing class is not enough. If a add an additional version check for TYPO3 version, it works.