Use isHash instead of checking for presence of optional salt