public function verify(Package $package) { $path = $package->getDestination(); if (is_dir($path) || is_file($path) || $path == getcwd()) { throw new ValidatorException('Package already exists!'); } }