Actually fix spy check on undefined
1.0.4