Created isPedersenCommitment function