Show comments menu in dashboard only if the site has comment

Okay, the solution is this below to hide Comments menu if the site doesn’t have any comments (approved, pending, trash or spam).

function remove_commentsmenu() {
        global $user_ID;
        if ( 1 > wp_count_comments( get_the_ID() )->total_comments && 1 > wp_count_comments( get_the_ID() )->trash ) {
                remove_menu_page( 'edit-comments.php' );
    }
}
add_action( 'admin_menu', 'remove_commentsmenu' );