Remove Edit Link por Pages in Toolbar

Hello guys!

I hope you are all doing great.

I want to remove the “Edit” link in the admin toolbar for pages only, but leave it visible to other post types.

I created a mu-plugin with this code:

<?php

if(is_page()) {

add_action( 'admin_bar_menu', 'remove_edit_link', 999 );

function remove_edit_link( $wp_admin_bar ) {
	$wp_admin_bar->remove_node( 'edit' );
}
}

But it is not working.

Could you please help me with this?

Thank you!