This is C++, `if(category)  return true;` is okay.