Added in check to see if Smarty class is already autoloaded