Fix all unsafe BOOL checks