Can't seem to call static method IPAddress:isValid

Those functions were only added 2 days ago. If you're using the release version of the ESP8266 core for Arduino or even a slightly outdated beta version then those functions won't be in the code you're using. Check the actual files on your computer if you want to be sure.