Add composer.json file and class existence check.