Remove extraneous local variable
Remove explicit nil comparison
Store assert in local