Fix gzip always being on

Switch from checking isset() to !empty(). Currently false will cause isset to return true and use compression. Also, some minor lint according to PHPCS in Sublime.