Fix gzip conditionals

Gzip is always on even if set to true because isset will return true for anything value in ['gzip']. Using not empty will return true only if ['gzip'] is actually not empty and not set to false.