Besides the check, do you happen to know why `options` can sometimes be undefined?