Defensive checking, though from reviewing the code I feel like it should
never get a null there, which confuses me