How to check if page exists in Multisite?

I have the following function to check if the page exists in WordPress by using the path:

The problem is that in multisite the function fails. I searched around but I couldn’t find a Multisite function similar to get_page_by_path