Function isServer

Checks if the current environment is a server (Node.js without window object). Logs an error if the function is called outside of a Node.js environment.