any ideas how to check if an IP is private? is there maybe a function for this that i don't know about?

thanks