has_shortcode() – how to detect nested shortcode

$page_id = get_queried_object_id();
$page_object = get_page( $page_id );
if ( strpos($page_object->post_content, '[/slider]') )

error code: 523