Update Hash.php

Optimised to remove else, not sure if localisation is done across other exceptions?