Ping IP address using ESP8266 connected to Arduino

I’m wanting to make a system using neo-pixels, an arduino and an ESP8266 module to ping IP addresses on my network to determine if certain people are on our wifi (I’ll be pinging mobile phones).

I’m finding it hard to find any help as to how to ping IP addresses from an arduino using the ESP8266 module. I did find the ICMP Ping library, but it uses the ethernet shield, and I’m quite new to arduino so I don’t even know if I could modify the library in any way.

If anyone could help me on my way, that’d be great!