Adding defensive check for class Spyc and updated composer.json file.