Don't use "in" operator where a typeof foo check can be used.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>