I think if(target) is more readable than if(target != nullptr) too.