Restore previous JSON check; 'in' will always be true here

The 'parse' and 'stringify' properties are always assigned in the literal,
so 'in' will evaluate to true.

Instead, check whether either value is falsy (which it will be if none of
the checked methods are available).
Merge pull request #82 from mattflaschen/fixJSONCheck

Restore previous JSON check; 'in' will always be true here