Add Php::class_exists implementation.