This can be simplified as

if (aGetETag) {
  // Blah
}