Indeed. Refactor the existVerifiableData that not only true if only one verifiable data attached.