Little typeof check problem regarding integer/number