Add function and constant defined checks in case PHP geoip extension
is enabled