How to return a Boolean for a page that is a subpage thru its name?

Consider that the child page is subpage_anything_1 to check if we are on that page we can use strpos to the requested URI

strpos($_SERVER['REQUEST_URI'],"subpage_anything_1");

tech