Add a method to test a hash

I need it there https://github.com/Sylius/Sylius/pull/812 to make the unsafe notification a safer one =)