Would be better to store it->status() in a local variable here as constructing it may be expensive.