Update check for cli to not throw an error

Thanks for the great plugin! This is just what I needed.

I ran the php script from the command line outside of emacs and got the error

    Notice: Undefined index: SERVER_NAME

On my system $_SERVER["SERVER_NAME"] is not defined when running php from the command line, so I changed the conditional to an isset to account for that.