remove unnecessary if

I found unnecessary "if content" when 
I tested my static analysis tools [FlawDetector](https://github.com/ginriki/flaw_detector),  using your json library as input.