Instead of doing yet another obfuscated conversion you could have used the identity operator (```!==``) to make the comparison to ensure you do boolean comparison.