Adding class_exists check. https://github.com/websharks/quick-cache/issues/151