Fix wrong typeof check
1.0.8