added exists functionality
updated composer.json