added method_exists check