Revert "Added class_exists check"

This reverts commit a36dd2d2c9a6b0d0ac418f0cd69e100f1d08cef9.