Fix SensioLabsInsight issues

* compare booleans strictly
Explain the use of Zend\Json
Add composer.lock to .gitignore