Trying to understand the BOOL function