Avoid jshint error with "unknown" typeof