check for composer.json validity