Add bugfix for buggy php function class_exists in contao