It seems map::offloadn already handles the case of om being null, so why not just delete this check and go with the else case?