Possibility to collapsed threads with persistance

The user have the possibility to collapse threads of emails. 
The information about the collapsed threads are kept inside the user settings under the module Mail saved by the key : threadsCollapsed
I think that is just wrong.

Instead of doing:

if ([[moduleSettings objectForKey:@"threadsCollapsed"] boolValue])

and then:

threadsCollapsed = [moduleSettings objectForKey:@"threadsCollapsed"];

just do:

if ((threadsCollapsed = [moduleSettings objectForKey:@"threadsCollapsed"]))

And do the same below.