if (is_null($ipAddress)) {
            throw new InvalidArgumentException("No IP address supplied"); 
        }