adjust conditionals for plone 5