null check required, backed by unit test