Fixing class_exists optimizer [ci skip]