Add typeof to check if console is available
Merge pull request #182 from sarxos/patch-2

Add typeof to check if console is available